home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- # -*- Fundamental -*-
- #
- #
- # args: interface-name tty-device speed local-IP remote-IP
-
- PATH=/usr/ucb:/bin:/usr/bin:/etc:/usr/etc:/usr/local/bin; export PATH
-
- #
- # Add a route to localhost so netinfo won't sleep.
- #
- /usr/etc/route add $4 127.0.0.1 0
-
- # If we are on COM1 let the nmserver know the fruits of our network configuration
- # endeavor. This allows NXHost connections. Thanks to Glenn Brown
- # <gbrown@alumni.caltech.edu>
-
- if [ $2 = /dev/cufa ]; then
- pid=`ps cax | egrep nmserver | awk '{print $1;}'`
- if [ -n "$pid" ]; then
- echo "PPP Reinitializing nmserver's network portion" > /dev/console
- kill -USR2 $pid
- fi
- fi
-
- #
- # Signal PPPMeter.app if using that
- #
- #/LocalApps/PPPMeter.app/pppstatus 1
-
- #
- # Send any mail that has been queued while the link
- # was down.
- if [ $2 = /dev/cufa ]; then
- /usr/lib/sendmail -q &
- fi
-
-
- #
- # If I bring up my modem link (vs. my other direct
- # connection) then start up the POP3 Client to get my
- # mail. This app is killed in the ip-down script because
- # it doesn't behave nicely when it can't contact the server.
- #
- if [ $2 = /dev/cufa ]; then
- open /LocalApps/PopOver.app > /dev/console 2>&1
- fi
-
-