home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OpenStep 4.2
/
Openstep-4.2-Intel-User.iso
/
usr
/
template
/
client
/
etc
/
ppp
/
Examples
/
ip-down.example
< prev
next >
Wrap
Text File
|
1995-07-24
|
712b
|
31 lines
#!/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
#
# Remove the route to localhost that we created in ip-up
#
/usr/etc/route delete $4 127.0.0.1
#
# Stop active clients. They typically doesn't behave well
# when server contact is lost.
#
if [ $2 = /dev/cufa ]; then
#kill `ps -ax | egrep "xntpd" | egrep -v "egrep" | sed 's/^\([ 0-9]*\) .*/\1'/`
kill `ps -ax | egrep "PopOver" | egrep -v "egrep" | sed 's/^\([ 0-9]*\) .*/\1'/`
kill `ps -ax | egrep "PPPstats" | egrep -v "egrep" | sed 's/^\([ 0-9]*\) .*/\1'/`
fi
#
# Signal PPPMeter.app if using that
#
#/LocalApps/PPPMeter.app/pppstatus 0