#!/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=9206332992292 # The telephone number for the connection #TELEPHONE=27 #TELEPHONE=0962145 ACCOUNT=username # The account name for logon (as in 'George Burns') PASSWORD=psswort # The password for this account (and 'Gracie Allen') LOCAL_IP=0.0.0.0 # Local IP address if known. Dynamic = 0.0.0.0 REMOTE_IP=0.0.0.0 # Remote IP address if desired. Normally 0.0.0.0 #NETMASK=255.255.255.240 # The proper netmask if needed # # tty_now=`/usr/bin/tty | /usr/bin/cut -d/ -f3` TERMINAL="/dev/$tty_now" # # Export them so that they will be available to 'ppp-on-dialer' export TELEPHONE ACCOUNT PASSWORD TERMINAL # # 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-dialer # # Initiate the connection # PPP_FLAGS="38400 user Pd_ferdi papcrypt -ipx-protocol modem debug kdebug 0 defaultroute crtscts noipdefault" #PPP_FLAGS="38400 mru 1500 modem debug kdebug 0 defaultroute crtscts noipdefault asyncmap 20A0000 escape FF" #/usr/sbin/pppd lock connect $DIALER_SCRIPT $DEVICE $PPP_FLAGS $LOCAL_IP:$REMOTE_IP # # ppplog /usr/sbin/pppd /dev/ttyI3 lock $PPP_FLAGS \ $LOCAL_IP:$REMOTE_IP \ connect $DIALER_SCRIPT /mail/mail.pause & /mail/senden &