aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifdown-sl8
1 files changed, 8 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifdown-sl b/sysconfig/network-scripts/ifdown-sl
index ea9bae61..a7b2d8ba 100755
--- a/sysconfig/network-scripts/ifdown-sl
+++ b/sysconfig/network-scripts/ifdown-sl
@@ -11,6 +11,14 @@ source_config
rm -f /var/run/sl-$DEVICE.dev
PID=`pidof dip-$DEVICE`
+#
+# The proctitle for connected dip daemons is actually "-dip (ipaddr)"
+# with ipaddr == local on dial-out, remote on dial-in
+# Grab the PID of connected dial-out daemon.
+#
+if [ -z "$PID" ]; then
+ PID=`pidof -- -dip\ \($IPADDR\)`
+fi
if [ -z "$PID" ]; then
exit 1
fi