ppp.linkdown.sample revision 267654
1139749Simp######################################################################### 274711Scg# 3119853Scg# Example of ppp.linkdown file 4166426Sjoel# 5166426Sjoel# This file is checked when ppp closes a connection. 650723Scg# ppp searches the labels in this file as follows: 750723Scg# 829415Sjmg# 1) The label that matches the IP number assigned to our side. 929415Sjmg# 1030869Sjmg# 2) The label specified on the command line to ppp. 1130869Sjmg# 1230869Sjmg# 3) If no label has been found, use MYADDR if it exists. 1330869Sjmg# 1450723Scg# 1550723Scg# $FreeBSD: releng/9.3/share/examples/ppp/ppp.linkdown.sample 230653 2012-01-28 19:48:44Z eadler $ 1630869Sjmg# 1750723Scg######################################################################### 1850723Scg 1950723Scg# We don't really need to do much here. If we have notified a DNS 2050723Scg# of our temporary IP number, we may want to ``un-notify'' them. 2150723Scg# 2250723Scg# If you're into sound effects when the link goes down, you can run 2350723Scg# ``auplay'' (assuming NAS is installed and configured). 2450723Scg# 2550723ScgMYADDR: 2650723Scg !bg /usr/local/bin/auplay /etc/ppp/linkdown.au 2750723Scg 2829415Sjmg# If you're running ``ppp -auto -nat dynamic-nat-auto'', and are 2929415Sjmg# assigned a dynamic IP number by the peer, this may be worth while 30193640Sariff# to keep the interface aliases to a minimum (see ``enable iface-alias'' 31193640Sariff# in the man page): 32193640Sariff# 33193640Sariffdynamic-nat-auto: 3453465Scg iface clear 3550723Scg