MFC 1.45 for the 2.0 release: Properly set B_INVAL after failed read.
[dragonfly.git] / share / examples / ppp / ppp.linkdown.sample
blob88f10b279f8ea62825085c53bcb71e213027f544
1 #########################################################################
3 #          Example of ppp.linkdown file
5 #  This file is checked when ppp closes a connection.
6 #  ppp searches the labels in this file as follows:
8 #  1) The label that matches the IP number assigned to our side.
10 #  2) The label specified on the command line to ppp.
12 #  3) If no label has been found, use MYADDR if it exists.
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 $
18 #########################################################################
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.
23 # If you're into sound effects when the link goes down, you can run
24 # ``auplay'' (assuming NAS is installed and configured).
26 MYADDR:
27  !bg /usr/X11R6/bin/auplay /etc/ppp/linkdown.au
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):
34 dynamic-nat-auto:
35  iface clear