diff options
-rwxr-xr-x | sysconfig/network-scripts/ifdown-ppp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifdown-ppp b/sysconfig/network-scripts/ifdown-ppp index e76732b9..b629673c 100755 --- a/sysconfig/network-scripts/ifdown-ppp +++ b/sysconfig/network-scripts/ifdown-ppp @@ -7,7 +7,7 @@ cd /etc/sysconfig/network-scripts CONFIG=$1 source_config -if [ "${DEMAND}" != no -a -f /var/run/ppp-${DEVICE}.pid ] ; then +if [ "${DEMAND}" = "yes" -a -f /var/run/ppp-${DEVICE}.pid ] ; then PID=`head -1 /var/run/ppp-${DEVICE}.pid` kill -TERM ${PID} sleep 2 |