3 # desc: configure your internet connection via ppp over a modem
7 devs=`{ls -p /dev/eia? >[2]/dev/null}
9 echo 'No serial port found; this can''t happen.' # because confignet checks
13 # not going to use the mouse for PPP
14 if(~ eia^$mouseport $devs)
15 devs=`{echo $devs | sed 's/eia'^$mouseport^'//'}
18 echo 'The only serial port you have is your mouse.'
19 echo 'Cannot configure PPP.'
24 echo 'Please choose the serial port or modem to use to connect to your ISP.'
27 n=`{echo $i | sed 's/eia//'}
29 echo ' '^$i^'(Windows'' COM'^$n^')'
32 prompt 'Serial device' $devs
36 echo 'Pick a baud rate for the PPP connection.'
38 prompt -d 115200 'Baud rate'
42 echo 'You can specify your dialup phone number, username, and password,'
43 echo 'or you can log in manually by typing the modem commands yourself.'
45 prompt 'Dialing method' auto manual
50 prompt 'PPP phone number'; pppphone=$rd
51 prompt 'PPP phone username'; pppuser=$rd
52 prompt 'PPP phone password'; ppppasswd=$rd
55 export pppdev pppmethod pppphone ppppasswd pppuser pppbaud
59 if(! ~ $#pppmethod 1 || ! test -f /dev/$pppdev){