diff options
author | Jeff Johnson <jbj@redhat.com> | 1998-07-07 12:15:12 +0000 |
---|---|---|
committer | Jeff Johnson <jbj@redhat.com> | 1998-07-07 12:15:12 +0000 |
commit | ed157d20a6177ddcf94e64681e33881fcd96df29 (patch) | |
tree | c021905f7403cb40204768a1a48652bb160ef6f4 /sysconfig | |
parent | d64366bc8310d35824626b6c99c48628f0ed70ee (diff) | |
download | initscripts-ed157d20a6177ddcf94e64681e33881fcd96df29.tar initscripts-ed157d20a6177ddcf94e64681e33881fcd96df29.tar.gz initscripts-ed157d20a6177ddcf94e64681e33881fcd96df29.tar.bz2 initscripts-ed157d20a6177ddcf94e64681e33881fcd96df29.tar.xz initscripts-ed157d20a6177ddcf94e64681e33881fcd96df29.zip |
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
Diffstat (limited to 'sysconfig')
-rwxr-xr-x | sysconfig/network-scripts/ifdown-sl | 8 |
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 |