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