summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ppp.subr8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ppp.subr b/src/ppp.subr
index c78325e..22ccec4 100644
--- a/src/ppp.subr
+++ b/src/ppp.subr
@@ -1,9 +1,9 @@
#! /bin/bash
ppp_up() {
- [[ -z "$PEER" ]] && PEER="/etc/ppp/peers/provider"
+ [[ -z "$PEER" ]] && PEER="provider"
[[ -z "$PPP_TIMEOUT" ]] && PPP_TIMEOUT=30
- /usr/sbin/pppd call $PEER updetach child-timeout $PPP_TIMEOUT linkname $(basename $PEER)
+ /usr/sbin/pppd call $PEER updetach child-timeout $PPP_TIMEOUT linkname $PEER
if [[ $? -ne 0 ]]; then
err_append "pppd connection failed"
@@ -12,10 +12,10 @@ ppp_up() {
}
ppp_down() {
- kill $(cat /var/run/ppp-$(basename $PEER))
+ kill $(head -1 /var/run/ppp-$(basename $PEER).pid)
}
ppp_clean_scope() {
- unset PPP_PEER PPP_TIMEOUT
+ unset PPP_PEER PPP_TIMEOUT
}
# vim: set ts=4 et sw=4: