summaryrefslogtreecommitdiff
path: root/etc/ppp/ppp.linkdown.sample
blob: 47cfa141640120a7fc0c7bd5d6c95011b3de8290 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#########################################################################
#
#          Example of ppp.linkdown file
#
#  This file is checked when ppp closes a connection.
#  ppp searches the labels in this file as follows:
#
#  1) The label that matches the IP number assigned to our side.
#
#  2) The label specified on the command line to ppp.
#
#  3) If no label has been found, use MYADDR if it exists.
#
#
# $OpenBSD: ppp.linkdown.sample,v 1.5 2002/06/09 06:15:15 todd Exp $
#
#########################################################################

# We don't really need to do much here.  If we have notified a DNS
# of our temporary IP number, we may want to ``un-notify'' them.
#
# If you're into sound effects when the link goes down, you can run
# ``auplay'' (assuming NAS is installed and configured).
#
MYADDR:
 !bg /usr/X11R6/bin/auplay /etc/ppp/linkdown.au

# If you're running ``ppp -auto -alias dynamic-alias-auto'', and are
# assigned a dynamic IP number by the peer, this may be worth while
# to keep the interface aliases to a minimum (see ``enable iface-alias''
# in the man page):
#
dynamic-alias-auto:
 iface clear