regen
[dragonfly.git] / share / examples / ppp / ppp.linkdown.sample
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: src/share/examples/ppp/ppp.linkdown.sample,v 1.3 1999/09/07 07:56:54 brian Exp $
16 # $DragonFly: src/share/examples/ppp/ppp.linkdown.sample,v 1.2 2003/06/17 04:36:57 dillon Exp $
17 #
18 #########################################################################
19
20 # We don't really need to do much here.  If we have notified a DNS
21 # of our temporary IP number, we may want to ``un-notify'' them.
22 #
23 # If you're into sound effects when the link goes down, you can run
24 # ``auplay'' (assuming NAS is installed and configured).
25 #
26 MYADDR:
27  !bg /usr/X11R6/bin/auplay /etc/ppp/linkdown.au
28
29 # If you're running ``ppp -auto -nat dynamic-nat-auto'', and are
30 # assigned a dynamic IP number by the peer, this may be worth while
31 # to keep the interface aliases to a minimum (see ``enable iface-alias''
32 # in the man page):
33 #
34 dynamic-nat-auto:
35  iface clear