ip-down revision 1.1 1 #!/bin/sh
2 #
3 # This script is run by the pppd _after_ the link is brought down.
4 # It should be used to delete routes, unset IP addresses etc.
5 #
6 # This script is called with the following arguments:
7 # Arg Name Example
8 # $1 Interface name ppp0
9 # $2 The tty ttyS1
10 # $3 The link speed 38400
11 # $4 Local IP number 12.34.56.78
12 # $5 Peer IP number 12.34.56.99
13 #
14
15 #
16 # The environment is cleared before executing this script
17 # so the path must be reset
18 #
19 PATH=/usr/sbin:/sbin:/usr/bin:/bin
20 export PATH
21
22 # last line
23