diff options
author | James Rayner <james@archlinux.org> | 2008-02-13 10:31:30 +0100 |
---|---|---|
committer | James Rayner <james@archlinux.org> | 2008-02-13 10:31:30 +0100 |
commit | 8d8bead5ced118a81abac885c5b463808a847b84 (patch) | |
tree | 4f5b883f06868536123f347bdaff316785c0e04f | |
parent | 37c25f14c2d1b02a89bd7460690a827b6e6ae998 (diff) | |
download | netctl-8d8bead5ced118a81abac885c5b463808a847b84.tar.gz netctl-8d8bead5ced118a81abac885c5b463808a847b84.tar.xz |
Fixed PPP functionality: http://bbs.archlinux.org/viewtopic.php?pid=326065#p326065
-rw-r--r-- | src/ppp.subr | 8 |
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: |