[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

PPP with dialup scripts.




I am having problems getting ppp to work with a script. It works *fine*
manually, using minicom to dial, and executing 'pppd /dev/ttyS2 38400'

I've tried this as root. 

Thanks for any suggestions you might have!
Chris.

# tail /var/log/daemon.log
Oct 28 22:25:56 wraith pppd[316]: pppd 2.2.0 started by root, uid 0
Oct 28 22:25:57 wraith pppd[316]: Serial connection established.
Oct 28 22:25:58 wraith pppd[316]: Using interface ppp0
Oct 28 22:25:58 wraith pppd[316]: Connect: ppp0 <--> /dev/ttyS2
Oct 28 22:25:59 wraith pppd[316]: Serial line is looped back.
Oct 28 22:25:59 wraith pppd[316]: Connection terminated.
Oct 28 22:25:59 wraith pppd[316]: Exit.


/etc/ppp/options:

# prevent forking
-detach
# dynamic IPs
0.0.0.0:
# use modem
modem
# use uucp locking
lock
# hardware flow
crtscts
# default routing
defaultroute
# NO escaped control sequences
asyncmap 0
# maximum transmission size
mtu 552
# maximum recieve size
mru 552
# PAP computer name
name artmartin
# end options

/etc/ppp/ppp-on:
 
#!/bin/sh
#
# Script to initiate a ppp connection. This is the first part of the
# pair of scripts. This is not a secure pair of scripts as the codes
# are visible with the 'ps' command.  However, it is simple.
#
# These are the parameters. Change as needed.
TELEPHONE="70#,2147446147" # The telephone number for the connection
#
# Export them so that they will be available at 'ppp-on-dialer' time.
export TELEPHONE
#
# This is the location of the script which dials the phone and logs
# in.  Please use the absolute file name as the $PATH variable is not
# used on the connect option.  (To do so on a 'root' account would be
# a security hole so don't ask.)
#
DIALER_SCRIPT=/etc/ppp/ppp-on-pap
#
# Initiate the connection
#
#

exec /usr/sbin/pppd /dev/ttyS2 38400 connect $DIALER_SCRIPT
# end ppp-on

/etc/ppp/ppp-on-pap

#!/bin/sh
#
exec chat -v
   TIMEOUT          3                  \
   ABORT            '\nBUSY\n'         \
   ABORT            '\nNO ANSWER\n'    \
   ''               \rAT               \
   'OK-+++\c-OK'    ATH0               \
   TIMEOUT          30                 \
   OK               ATDT$TELEPHONE     \
   CONNECT          ''                 \
# end ppp-on-pap

--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com


Reply to: