Make the description of the call option more verbose, and
[mpls-ppp.git] / NeXT / Examples / ip-down.example
blob92576ec511cb32dfcf63801d45500195cada8c54
1 #!/bin/sh
2 # -*- Fundamental -*-
4 # args: interface-name tty-device speed local-IP remote-IP
6 PATH=/usr/ucb:/bin:/usr/bin:/etc:/usr/etc:/usr/local/bin; export PATH
9 # Remove the route to localhost that we created in ip-up
11 /usr/etc/route delete $4 127.0.0.1
13 # Let the nmserver know the fruits of our network configuration
14 # endeavor. This allows NXHost connections. Thanks to Glenn Brown
15 # <gbrown@alumni.caltech.edu>
16 pid=`ps cax | egrep nmserver | awk '{print $1;}'`
17 if [ -n "$pid" ]; then
18 echo "PPP Reinitializing nmserver's network portion" > /dev/console
19 kill -USR2 $pid
23 # Let lookupd know that things have changed
25 pid=`ps cax | egrep lookupd | awk '{print $1;}'`
26 if [ -n "$pid" ]; then
27 echo "PPP Reinitializing lookupd" > /dev/console
28 kill -HUP $pid