summaryrefslogtreecommitdiffstats
path: root/src/connections/ppp
diff options
context:
space:
mode:
Diffstat (limited to 'src/connections/ppp')
-rw-r--r--src/connections/ppp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/connections/ppp b/src/connections/ppp
index ecefd63..9432323 100644
--- a/src/connections/ppp
+++ b/src/connections/ppp
@@ -1,5 +1,9 @@
#! /bin/bash
+. /usr/lib/network/network
+
+
ppp_up() {
+ load_profile $1
[[ -z "$PEER" ]] && PEER="provider"
[[ -z "$PPP_TIMEOUT" ]] && PPP_TIMEOUT=30
@@ -12,7 +16,10 @@ ppp_up() {
}
ppp_down() {
+ load_profile $1
kill $(head -1 /var/run/ppp-$(basename $PEER).pid)
}
+ppp_$1 $2
+exit $?
# vim: set ts=4 et sw=4: