SVN: rc-scripts/trunk/sysconfig/network-scripts/ifdown-ppp
qboosh
qboosh at pld-linux.org
Sat Apr 28 20:34:56 CEST 2007
Author: qboosh
Date: Sat Apr 28 20:34:56 2007
New Revision: 8485
Modified:
rc-scripts/trunk/sysconfig/network-scripts/ifdown-ppp
Log:
- kill ugly warning if pppd was nicely killed
Modified: rc-scripts/trunk/sysconfig/network-scripts/ifdown-ppp
==============================================================================
--- rc-scripts/trunk/sysconfig/network-scripts/ifdown-ppp (original)
+++ rc-scripts/trunk/sysconfig/network-scripts/ifdown-ppp Sat Apr 28 20:34:56 2007
@@ -33,8 +33,10 @@
sleep 2
[ -d /proc/${PID} ] && sleep 2 && [ -d /proc/${PID} ] && sleep 5
-kill -KILL ${PID} > /dev/null 2>&1
-logger -p daemon.info -t ifdown-ppp "ifdown-ppp unable to nicely kill pppd-$DEVICE (pppd-$DEVNAME)" &
+if [ -d /proc/${PID} ]; then
+ kill -KILL ${PID} > /dev/null 2>&1
+ logger -p daemon.info -t ifdown-ppp "ifdown-ppp unable to nicely kill pppd-$DEVICE (pppd-$DEVNAME)" &
+fi
# Special cases
if is_yes "${PPPOA_EAGLE}"; then
More information about the pld-cvs-commit
mailing list