]> git.ozlabs.org Git - ppp.git/blob - NeXT/Examples/ip-up.example
Cosmetic fix.
[ppp.git] / NeXT / Examples / ip-up.example
1 #!/bin/sh
2 # -*- Fundamental -*-
3 #
4 #
5 # args: interface-name tty-device speed local-IP remote-IP
6
7 PATH=/usr/ucb:/bin:/usr/bin:/etc:/usr/etc:/usr/local/bin; export PATH
8
9 #
10 # Add a route to localhost so netinfo won't sleep.
11 #
12 /usr/etc/route add $4 127.0.0.1 0
13
14
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
22 fi
23
24
25 #
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
31 fi
32
33
34 #
35 # Send any mail that has been queued while the link
36 # was down.
37 /usr/lib/sendmail -q &
38
39
40 #
41 # Synchronize our clock with some of the public NTP servers.
42 #
43 # norad.arc.nasa.gov  - 192.203.230.10
44 # tick.usno.navy.mil  - 192.5.41.40
45 #
46 /usr/etc/ntp -sf 192.203.230.10 192.5.41.40 > /dev/console 2>&1 &