X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=sample%2Fip-down;fp=sample%2Fip-down;h=b771fb644b9b0bf5e10f3a23f409a25c1040f133;hb=d96e4f148f54dc9903afe53cb69d3f5468c0a9b0;hp=0000000000000000000000000000000000000000;hpb=c6869931feed37330a96715fecc0c2c75f3f5dc0;p=ppp.git diff --git a/sample/ip-down b/sample/ip-down new file mode 100644 index 0000000..b771fb6 --- /dev/null +++ b/sample/ip-down @@ -0,0 +1,22 @@ +#!/bin/sh +# +# This script is run by the pppd _after_ the link is brought down. +# It should be used to delete routes, unset IP addresses etc. +# +# This script is called with the following arguments: +# Arg Name Example +# $1 Interface name ppp0 +# $2 The tty ttyS1 +# $3 The link speed 38400 +# $4 Local IP number 12.34.56.78 +# $5 Peer IP number 12.34.56.99 +# + +# +# The environment is cleared before executing this script +# so the path must be reset +# +PATH=/usr/sbin:/sbin:/usr/bin:/bin +export PATH + +# last line