summaryrefslogtreecommitdiff
path: root/rc/bin/inst/configppp
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2017-08-04 14:18:40 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2017-08-04 14:18:40 +0200
commitcaddc9a6ea0c8aeb2510ec9eda67eb4f2e82a00c (patch)
treea18df9d8799eafd09e4649e540951daa780e9bed /rc/bin/inst/configppp
parentd5bbee50a019aaa91f16ab115f606739e837cb9c (diff)
downloadplan9front-caddc9a6ea0c8aeb2510ec9eda67eb4f2e82a00c.tar.xz
inst: get rid of ppp configuration
Diffstat (limited to 'rc/bin/inst/configppp')
-rwxr-xr-xrc/bin/inst/configppp63
1 files changed, 0 insertions, 63 deletions
diff --git a/rc/bin/inst/configppp b/rc/bin/inst/configppp
deleted file mode 100755
index da6c100fd..000000000
--- a/rc/bin/inst/configppp
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/bin/rc
-
-# desc: configure your internet connection via ppp over a modem
-
-switch($1) {
-case go
- devs=`{ls -p /dev/eia? >[2]/dev/null}
- if(~ $#devs 0) {
- echo 'No serial port found; this can''t happen.' # because confignet checks
- exit
- }
-
- # not going to use the mouse for PPP
- if(~ eia^$mouseport $devs)
- devs=`{echo $devs | sed 's/eia'^$mouseport^'//'}
-
- if(~ $#devs 0) {
- echo 'The only serial port you have is your mouse.'
- echo 'Cannot configure PPP.'
- exit
- }
-
- echo
- echo 'Please choose the serial port or modem to use to connect to your ISP.'
- echo
- for(i in $devs) {
- n=`{echo $i | sed 's/eia//'}
- n=`{hoc -e 1+$n}
- echo ' '^$i^'(Windows'' COM'^$n^')'
- }
- echo
- prompt 'Serial device' $devs
- pppdev=$rd
-
- echo
- echo 'Pick a baud rate for the PPP connection.'
- echo
- prompt -d 115200 'Baud rate'
- pppbaud=$rd
-
- echo
- echo 'You can specify your dialup phone number, username, and password,'
- echo 'or you can log in manually by typing the modem commands yourself.'
- echo
- prompt 'Dialing method' auto manual
- pppmethod=$rd
-
- switch($pppmethod){
- case auto
- prompt 'PPP phone number'; pppphone=$rd
- prompt 'PPP phone username'; pppuser=$rd
- prompt 'PPP phone password'; ppppasswd=$rd
- }
-
- export pppdev pppmethod pppphone ppppasswd pppuser pppbaud
- exec ./startppp go
-
-case checkdone
- if(! ~ $#pppmethod 1 || ! test -f /dev/$pppdev){
- configppp=notdone
- export configppp
- }
-}