plan9fox/rc/bin/inst/stopppp
2011-04-12 15:53:55 +00:00

19 lines
250 B
Bash
Executable file

#!/bin/rc
# desc: shut down the ppp connection
# prereq:
switch($1) {
case checkready
if(! ~ $#pppdev 1 || ! isipdevup '^pkt[0-9]') {
stopppp=notdone
export stopppp
}
case go
kill ppp | rc
case checkdone
stopppp=notdone
export stopppp
}