19e1d50b6SBrian Somers######################################################################### 29e1d50b6SBrian Somers# 39e1d50b6SBrian Somers# Example of ppp.linkdown file 49e1d50b6SBrian Somers# 59e1d50b6SBrian Somers# This file is checked when ppp closes a connection. 69e1d50b6SBrian Somers# ppp searches the labels in this file as follows: 79e1d50b6SBrian Somers# 89e1d50b6SBrian Somers# 1) The label that matches the IP number assigned to our side. 99e1d50b6SBrian Somers# 109e1d50b6SBrian Somers# 2) The label specified on the command line to ppp. 119e1d50b6SBrian Somers# 129e1d50b6SBrian Somers# 3) If no label has been found, use MYADDR if it exists. 139e1d50b6SBrian Somers# 149e1d50b6SBrian Somers# 159e1d50b6SBrian Somers# 169e1d50b6SBrian Somers######################################################################### 179e1d50b6SBrian Somers 189e1d50b6SBrian Somers# We don't really need to do much here. If we have notified a DNS 199e1d50b6SBrian Somers# of our temporary IP number, we may want to ``un-notify'' them. 209e1d50b6SBrian Somers# 219e1d50b6SBrian Somers# If you're into sound effects when the link goes down, you can run 229e1d50b6SBrian Somers# ``auplay'' (assuming NAS is installed and configured). 239e1d50b6SBrian Somers# 249e1d50b6SBrian SomersMYADDR: 25*2394cc22SEitan Adler !bg /usr/local/bin/auplay /etc/ppp/linkdown.au 269e1d50b6SBrian Somers 2773cf919aSBrian Somers# If you're running ``ppp -auto -nat dynamic-nat-auto'', and are 289e1d50b6SBrian Somers# assigned a dynamic IP number by the peer, this may be worth while 299e1d50b6SBrian Somers# to keep the interface aliases to a minimum (see ``enable iface-alias'' 309e1d50b6SBrian Somers# in the man page): 319e1d50b6SBrian Somers# 3273cf919aSBrian Somersdynamic-nat-auto: 339e1d50b6SBrian Somers iface clear 34