From ed157d20a6177ddcf94e64681e33881fcd96df29 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Tue, 7 Jul 1998 12:15:12 +0000 Subject: Bug report: I am running dip-3.3.7o-10 and initscripts-3.32-1 on Red Hat 5.0 Intel and was unable to terminate an established SLIP connection in the standard fashion. After some hacking around I discovered that the problem was that when dip establishes a connection, it changes it's argument list to '-dip (IP_ADDRESS)' where IP_ADDRESS is the local IP address. This of course breaks the network-scripts handling of the connection. I've modified /etc/sysconfig/network-scripts/ifdown-sl to take this into account and included the modified file below. I don't think it will work for people with dynamically allocated IP addresses though... -Mike Wittman support login: wittman@cs.berkeley.edu --- sysconfig/network-scripts/ifdown-sl | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sysconfig') 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 -- cgit v1.2.1