diff options
Diffstat (limited to 'sysconfig')
-rwxr-xr-x | sysconfig/network-scripts/ifdown-ppp | 6 | ||||
-rwxr-xr-x | sysconfig/network-scripts/ifup-ppp | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/sysconfig/network-scripts/ifdown-ppp b/sysconfig/network-scripts/ifdown-ppp index 4d8cfb75..9455d48a 100755 --- a/sysconfig/network-scripts/ifdown-ppp +++ b/sysconfig/network-scripts/ifdown-ppp @@ -11,8 +11,10 @@ if [ "$TYPE" = "xDSL" ] && [ -x /sbin/adsl-stop -o -x /usr/sbin/adsl-stop ] ; th exit $? fi -if [ "${DEMAND}" = "yes" -a -f /var/run/ppp-${DEVICE}.pid ] ; then - PID=`head -1 /var/run/ppp-${DEVICE}.pid` +CONFIG=${CONFIG##ifcfg-} + +if [ "${DEMAND}" = "yes" -a -f /var/run/ppp-${CONFIG}.pid ] ; then + PID=`head -1 /var/run/ppp-${CONFIG}.pid` kill -TERM ${PID} sleep 2 [ ! -d /proc/${PID} ] && exit 0 diff --git a/sysconfig/network-scripts/ifup-ppp b/sysconfig/network-scripts/ifup-ppp index 99b0e79f..3d26ebe8 100755 --- a/sysconfig/network-scripts/ifup-ppp +++ b/sysconfig/network-scripts/ifup-ppp @@ -18,7 +18,7 @@ else if [ "${DEMAND}" != yes -a "$TYPE" != "xDSL" ] ; then # let ppp-watch do the right thing shift - exec /sbin/ppp-watch "${DEVICE}" "$2" + exec /sbin/ppp-watch "${CONFIG##ifcfg-}" "$2" fi fi |