1995-01-31 06:24:33 +00:00
|
|
|
#########################################################################
|
|
|
|
#
|
|
|
|
# Example of ppp.linkup file
|
|
|
|
#
|
1997-11-08 20:58:41 +00:00
|
|
|
# This file is checked when ppp establishes a connection.
|
|
|
|
# ppp searches the labels in this file as follows:
|
1995-01-31 06:24:33 +00:00
|
|
|
#
|
1997-02-23 14:04:23 +00:00
|
|
|
# 1) The label that matches the IP number assigned to our side.
|
1995-01-31 06:24:33 +00:00
|
|
|
#
|
1997-02-23 14:04:23 +00:00
|
|
|
# 2) The label specified on the command line to ppp.
|
1995-01-31 06:24:33 +00:00
|
|
|
#
|
1997-02-23 14:04:23 +00:00
|
|
|
# 3) If no label has been found, use MYADDR if it exists.
|
1995-01-31 06:24:33 +00:00
|
|
|
#
|
1997-11-08 20:58:41 +00:00
|
|
|
#
|
1998-05-21 21:45:49 +00:00
|
|
|
# $Id: ppp.linkup.sample,v 1.13.2.1 1998/05/05 23:31:45 brian Exp $
|
1995-01-31 06:24:33 +00:00
|
|
|
#
|
|
|
|
#########################################################################
|
1997-02-23 14:04:23 +00:00
|
|
|
|
1998-05-21 21:45:49 +00:00
|
|
|
# It is no longer necessary to re-add the default route here as our
|
|
|
|
# ppp.conf route is `sticky' (see the man page).
|
1997-11-08 20:58:41 +00:00
|
|
|
# If you're into sound effects when the link comes up, you can run
|
|
|
|
# ``auplay'' (assuming NAS is installed and configured).
|
|
|
|
#
|
|
|
|
MYADDR:
|
|
|
|
!bg /usr/X11R6/bin/auplay /etc/ppp/linkup.au
|
|
|
|
|
1995-01-31 06:24:33 +00:00
|
|
|
# If we've got 192.244.176.32 as our address, then regard peer as a gateway
|
1998-05-21 21:45:49 +00:00
|
|
|
# to 192.244.176.0 network. This may also be done in ppp.conf instead.
|
1995-01-31 06:24:33 +00:00
|
|
|
#
|
1997-02-23 14:04:23 +00:00
|
|
|
192.244.176.32:
|
|
|
|
add 192.244.176.0 0 HISADDR
|
|
|
|
|
1998-05-21 21:45:49 +00:00
|
|
|
#You may want to execute a script after connecting. This script can do
|
1997-02-23 14:04:23 +00:00
|
|
|
# nice things such as kick off "sendmail -q", "popclient my.isp" and
|
1997-06-10 10:04:20 +00:00
|
|
|
# "slurp -d news". It can be passed MYADDR, HISADDR and INTERFACE
|
1997-11-08 20:58:41 +00:00
|
|
|
# as arguments too - useful for informing a DNS of your assigned IP.
|
1997-02-23 14:04:23 +00:00
|
|
|
#
|
1998-05-21 21:45:49 +00:00
|
|
|
# You may also want some sound effects....
|
|
|
|
#
|
1997-02-23 14:04:23 +00:00
|
|
|
pmdemand:
|
1997-08-25 01:07:08 +00:00
|
|
|
!bg /etc/ppp/ppp.etherup.pmdemand
|
1998-05-21 21:45:49 +00:00
|
|
|
! sh -c "cat /etc/ppp/linkup.au >/dev/audio"
|
1997-11-07 20:44:12 +00:00
|
|
|
|
|
|
|
# If your minimum call charge is 5 minutes, you may as well stay on
|
|
|
|
# the line for that amount of time. If we want a 60 second subsequent
|
1997-11-08 20:58:41 +00:00
|
|
|
# timeout, set your timeout to 300 in ppp.conf and then do this:
|
1997-11-07 20:44:12 +00:00
|
|
|
#
|
|
|
|
min5minutes:
|
|
|
|
!bg sh -c "sleep 240; pppctl -p mypassword 3000 set timeout 60"
|