home *** CD-ROM | disk | FTP | other *** search
- # TPGI PPP login script
- #
- #
- # 21/Aug/95 EJW
- #
- # Modified to connect to TPG2100 - Experimental Release ONLY!
- #
- # 19/8/96 Rod Tunks Release 0.1 Changed to wait for switching to ppp prompt
- # Added delay at the end of 3 second to allow
- # Linux PPP to start so Qdeck wouldnt time out
- #
- # 19/8/96 Rod Tunks Release 0.2 Changed wait to 2 seconds after ppp selected
- #
-
- STRING username
- STRING password
- STRING framing
- STRING IPAddress
- #Trace on
- SetTimeOut 60
- CfgGetValue "Username" username
-
- IF result = 0 THEN
- GetInput "Enter your username:" username
- IF result = 0 THEN
- PRINT "Warning, no username entered."
- ELSE
- PRINT "Username set to: ";username
- CfgSetValue "Username" username
- ENDIF
- ENDIF
-
- CfgGetValue "Password" password
- IF result = 0 THEN
- GetPassword "Enter your password:" password
- IF result = 0 THEN
- PRINT "Warning, no password entered."
- ENDIF
- ENDIF
-
- CfgGetValue "Framing" framing
- IF result = 0 THEN
- ABORT "Can't read 'Framing' setting from QDECK.INI."
- ENDIF # don't wait for spaces
-
- CommWaitFor "username:" # case sensitive
-
- CommSend username
- CommSend "%r" # send ENTER
-
- CommWaitFor "password:"
- CommSend password
- CommSend "%r" # send ENTER
-
- CommWaitFor "choice:"
-
- # The Annex terminal server requires a macro to be exectued for connection
- # ppp for PPP connection and slip for SLIP. It is case sensitive.
-
- IF framing = "MPPPP" THEN
- CommSend "ppp"
- ENDIF
- CommSend "%r"
- CommWaitFor "PPP"
- Delay 2
-
- END
-