# Maybe you have to specify the correct path for the correct shell
#! /usr/bin/ksh

# Here I just clean my log file
echo > /var/log/ppp

echo
echo
echo Dial Up Script by tungra (tungra@hotmail.com)
echo "--------------------------------------------"
echo
echo To change DNS servers just configure: /etc/resolv.conf
echo
echo USER DATA
echo
echo TYPE YOUR USERNAME:
read user
echo TYPE YOUR PASSWORD:
read password

echo > /etc/ppp/pap-secrets
echo  "#Secrets for authentication using PAP" >> /etc/ppp/pap-secrets
echo  "#client   server   secret                       IP addresses" >> /etc/ppp/pap-secrets
echo  " $user   *       $password     * ">> /etc/ppp/pap-secrets

/usr/sbin/pppd /dev/ttyS1  115200 debug user $user  connect "/usr/sbin/chat -v '' AT OK ATDT6690247 CONNECT '\d\c'"
echo 
echo
echo
echo  CONECTING........................
echo
echo
echo
user=trash
password=trash
echo > /etc/ppp/pap-secrets
echo  "#Secrets for authentication using PAP" >> /etc/ppp/pap-secrets
echo  "#client   server   secret                       IP addresses" >> /etc/ppp/pap-secrets
echo > /etc/ppp/chap-secrets
echo "#Secrets for authentication using CHAP" >> /etc/ppp/chap-secrets

    Source: geocities.com/tungra/Unix

               ( geocities.com/tungra)