systat - Filter out non-useful devices by default
[dragonfly.git] / share / examples / ppp / ppp.linkup.sample
blob15d5b008c4ee322b2d45bb2b16d012b593c57d0e
1 #########################################################################
3 #          Example of ppp.linkup file
5 #  This file is checked when ppp establishes 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.linkup.sample,v 1.2 1999/08/28 00:19:31 peter Exp $
16 # $DragonFly: src/share/examples/ppp/ppp.linkup.sample,v 1.2 2003/06/17 04:36:57 dillon Exp $
18 #########################################################################
20 # It is no longer necessary to re-add the default route here as our
21 # ppp.conf route is `sticky' (see the man page).
22 # If you're into sound effects when the link comes up, you can run
23 # ``auplay'' (assuming NAS is installed and configured).
25 MYADDR:
26  !bg /usr/X11R6/bin/auplay /etc/ppp/linkup.au
28 # If we've got 192.244.176.32 as our address, then regard peer as a gateway
29 # to 192.244.176.0 network.  This may also be done in ppp.conf instead.
31 192.244.176.32:
32  add 192.244.176.0 0 HISADDR
34 #You may want to execute a script after connecting.  This script can do
35 # nice things such as kick off "sendmail -q", "popclient my.isp" and
36 # "slurp -d news".  It can be passed MYADDR, HISADDR and INTERFACE
37 # as arguments too - useful for informing a DNS of your assigned IP.
39 # You may also want some sound effects....
41 pmdemand:
42  !bg /etc/ppp/ppp.etherup.pmdemand
43  ! sh -c "cat /etc/ppp/linkup.au >/dev/audio"
45 # If your minimum call charge is 5 minutes, you may as well stay on
46 # the line for that amount of time.  If we want a 60 second subsequent
47 # timeout, set your timeout to 300 in ppp.conf and then do this:
48
49 min5minutes:
50  !bg sh -c "sleep 240; pppctl -p mypassword 3000 set timeout 60"