diff options
author | James Rayner <james@archlinux.org> | 2008-12-18 06:32:07 +0100 |
---|---|---|
committer | James Rayner <james@archlinux.org> | 2008-12-18 06:32:07 +0100 |
commit | 300cd2c73b599c2a58463ce75e1aa2cb19ac2414 (patch) | |
tree | 1d8ade1de18d18b071ef30253390b8eadf3de05b /src/ppp.subr | |
parent | 4ea71825696ac78ff5694153f3c70eb0350f6a10 (diff) | |
download | netctl-300cd2c73b599c2a58463ce75e1aa2cb19ac2414.tar.gz netctl-300cd2c73b599c2a58463ce75e1aa2cb19ac2414.tar.xz |
libify and fix some scripting errors
Diffstat (limited to 'src/ppp.subr')
-rw-r--r-- | src/ppp.subr | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/ppp.subr b/src/ppp.subr deleted file mode 100644 index 22ccec4..0000000 --- a/src/ppp.subr +++ /dev/null @@ -1,21 +0,0 @@ -#! /bin/bash -ppp_up() { - [[ -z "$PEER" ]] && PEER="provider" - [[ -z "$PPP_TIMEOUT" ]] && PPP_TIMEOUT=30 - - /usr/sbin/pppd call $PEER updetach child-timeout $PPP_TIMEOUT linkname $PEER - - if [[ $? -ne 0 ]]; then - err_append "pppd connection failed" - exit 1 - fi -} - -ppp_down() { - kill $(head -1 /var/run/ppp-$(basename $PEER).pid) -} - -ppp_clean_scope() { - unset PPP_PEER PPP_TIMEOUT -} -# vim: set ts=4 et sw=4: |