ppp.linkdown.sample revision 225736
1#########################################################################
2#
3#          Example of ppp.linkdown file
4#
5#  This file is checked when ppp closes a connection.
6#  ppp searches the labels in this file as follows:
7#
8#  1) The label that matches the IP number assigned to our side.
9#
10#  2) The label specified on the command line to ppp.
11#
12#  3) If no label has been found, use MYADDR if it exists.
13#
14#
15# $FreeBSD: stable/9/share/examples/ppp/ppp.linkdown.sample 51049 1999-09-07 07:56:54Z brian $
16#
17#########################################################################
18
19# We don't really need to do much here.  If we have notified a DNS
20# of our temporary IP number, we may want to ``un-notify'' them.
21#
22# If you're into sound effects when the link goes down, you can run
23# ``auplay'' (assuming NAS is installed and configured).
24#
25MYADDR:
26 !bg /usr/X11R6/bin/auplay /etc/ppp/linkdown.au
27
28# If you're running ``ppp -auto -nat dynamic-nat-auto'', and are
29# assigned a dynamic IP number by the peer, this may be worth while
30# to keep the interface aliases to a minimum (see ``enable iface-alias''
31# in the man page):
32#
33dynamic-nat-auto:
34 iface clear
35