Make the description of the call option more verbose, and
[mpls-ppp.git] / NeXT / Examples / ip-up.example
blob0cd5266b063fd61c5886e2a476e8cc8218649f33
1 #!/bin/sh
2 # -*- Fundamental -*-
5 # args: interface-name tty-device speed local-IP remote-IP
7 PATH=/usr/ucb:/bin:/usr/bin:/etc:/usr/etc:/usr/local/bin; export PATH
10 # Add a route to localhost so netinfo won't sleep.
12 /usr/etc/route add $4 127.0.0.1 0
15 # Let the nmserver know the fruits of our network configuration
16 # endeavor. This allows NXHost connections. Thanks to Glenn Brown
17 # <gbrown@alumni.caltech.edu>
18 pid=`ps cax | egrep nmserver | awk '{print $1;}'`
19 if [ -n "$pid" ]; then
20 echo "PPP Reinitializing nmserver's network portion" > /dev/console
21 kill -USR2 $pid
26 # Let lookupd know that things have changed
27 pid=`ps cax | egrep lookupd | awk '{print $1;}'`
28 if [ -n "$pid" ]; then
29 echo "PPP Reinitializing lookupd" > /dev/console
30 kill -HUP $pid
35 # Send any mail that has been queued while the link
36 # was down.
37 /usr/lib/sendmail -q &
41 # Synchronize our clock with some of the public NTP servers.
43 # norad.arc.nasa.gov - 192.203.230.10
44 # tick.usno.navy.mil - 192.5.41.40
46 /usr/etc/ntp -sf 192.203.230.10 192.5.41.40 > /dev/console 2>&1 &