]> git.ozlabs.org Git - ppp.git/blob - NeXT/Examples/ip-down.example
does better without the includes
[ppp.git] / NeXT / Examples / ip-down.example
1 #!/bin/sh
2 # -*- Fundamental -*-
3 #
4 # args: interface-name tty-device speed local-IP remote-IP
5
6 PATH=/usr/ucb:/bin:/usr/bin:/etc:/usr/etc:/usr/local/bin; export PATH
7
8 #
9 # Remove the route to localhost that we created in ip-up
10 #
11 /usr/etc/route delete $4 127.0.0.1
12
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
20 fi
21
22 #
23 # Let lookupd know that things have changed
24 #
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
29 fi
30
31
32
33