"" "ATZ" # The next two lines should be left commented out until # the script works. # "OK" "ATL0" # "OK" "ATM0" SAY "Dialing modem...\n" "OK" "ATDT \T" ABORT BUSY ABORT "NO CARRIER" TIMEOUT 60 CONNECT \c |
# Secrets for authentication using CHAP # client server secret IP addresses |
# Secrets for authentication using CHAP # client server secret IP addresses "bloggs@btinternet.com" * "mypasswordhere" |
lock |
And thats it, now we need to add some more settings in here so make it look like:
lock usepeerdns defaultroute noipdefault noauth asyncmap 0 crtscts modem 115200 |
ttyS0 connect '/usr/sbin/chat -v -TSURFTIME_NUMBER_HERE -f /etc/ppp/chatscript' updetach name bloggs@btinternet.com |
ttyS0 connect '/usr/sbin/chat -v -TDAYTIME_NUMBER HERE -f /etc/ppp/chatscript' updetach name bloggs@btinternet.com |
Change any of the filenames to suit what you called them and the username. Do the same with this:
#!/bin/bash # a script to dial BTi case "$1" in daytime) /usr/sbin/pppd call bt-day ;; surftime) /usr/sbin/pppd call bt-surf ;; off) killall pppd ;; esac |
Once you've done that run this command at the command prompt:
Now you've done, simply type internet daytime/surftime/off and it will connect you to the internet.