aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-ppp
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig/network-scripts/ifup-ppp')
-rwxr-xr-xsysconfig/network-scripts/ifup-ppp15
1 files changed, 13 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/ifup-ppp b/sysconfig/network-scripts/ifup-ppp
index 9dd16d38..ebc4dca1 100755
--- a/sysconfig/network-scripts/ifup-ppp
+++ b/sysconfig/network-scripts/ifup-ppp
@@ -1,4 +1,4 @@
-#!/bin/bash
+#! /bin/bash
PATH=/sbin:/usr/sbin:/bin:/usr/bin
cd /etc/sysconfig/network-scripts
@@ -14,7 +14,8 @@ else
CONFIG=$(basename $1)
[ -f "${CONFIG}" ] || CONFIG=ifcfg-${1}
source_config
- exec /sbin/ppp-watch "${DEVICE}" "$@"
+ # don't start ppp-watch by xDSL
+ [ "$TYPE" = "xDSL" ] || exec /sbin/ppp-watch "${DEVICE}" "$@"
fi
CONFIG=$1
@@ -45,6 +46,16 @@ fi
exit 1
}
+# check that xDSL connection
+if [ "$TYPE" = "xDSL" -a -x /usr/sbin/adsl-start ] ; then
+ adsl-start "$ETH" "$USER" /etc/sysconfig/network-scripts/$CONFIG
+ exit $?
+else
+ logger -p daemon.info -t ifup-ppp \
+ $"/usr/sbin/adsl-start does not exist or is not executable for ${DEVICE}"
+ exit 1
+fi
+
PEERCONF=/etc/ppp/peers/${DEVNAME}
if [ ! -f ${PEERCONF} ]; then