1######################################################################### 2# 3# Example of ppp.linkup file 4# 5# This file is checked when ppp establishes 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.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 $ 17# 18######################################################################### 19 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). 24# 25MYADDR: 26 !bg /usr/X11R6/bin/auplay /etc/ppp/linkup.au 27 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. 30# 31192.244.176.32: 32 add 192.244.176.0 0 HISADDR 33 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. 38# 39# You may also want some sound effects.... 40# 41pmdemand: 42 !bg /etc/ppp/ppp.etherup.pmdemand 43 ! sh -c "cat /etc/ppp/linkup.au >/dev/audio" 44 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# 49min5minutes: 50 !bg sh -c "sleep 240; pppctl -p mypassword 3000 set timeout 60" 51