2 ###################################################################
4 # These parameters control the attack dialing sequence.
6 # Maximum number of attempts to reach the telephone number(s)
9 # Delay between each of the attempts. This is a parameter to sleep
10 # so use "15s" for 15 seconds, "1m" for 1 minute, etc.
13 ###################################################################
15 # This is a list of telephone numbers. Add new numbers if you wish
16 # and see the function 'callall' below for the dial process.
20 ###################################################################
22 # If you use the ppp-on script, then these are passed to this routine
23 # automatically. There is no need to define them here. If not, then
24 # you will need to set the values.
26 ACCOUNT
=my_account_name
29 ###################################################################
31 # Function to initialize the modem and ensure that it is in command
32 # state. This may not be needed, but it doesn't hurt.
36 chat
-v TIMEOUT
3 '' AT
'OK-+++\c-OK'
40 ###################################################################
42 # Script to dial a telephone
48 ABORT
'\nNO ANSWER\r' \
49 ABORT
'\nRINGING\r\n\r\nRINGING\r' \
52 ogin
:--ogin: $ACCOUNT \
55 # If the connection was successful then end the whole script with a
58 if [ "$?" = "0" ]; then
65 ###################################################################
67 # Script to dial any telephone number
71 # echo "dialing attempt number: $1" >/dev/console
76 ###################################################################
78 # Initialize the modem to ensure that it is in the command state
81 if [ ! "$?" = "0" ]; then
86 # Dial telephone numbers until one answers
90 attempt
=`expr $attempt + 1`
92 if [ "$attempt" = "$MAX_ATTEMPTS" ]; then