plan9fox/sys/lib/dist/pc/inst/stopether
2011-03-30 16:53:33 +03:00

21 lines
269 B
Bash
Executable file

#!/bin/rc
# desc: shut down the ethernet connection
# prereq:
switch($1) {
case checkready
if(! isipdevup /net/ether0) {
stopether=notdone
export stopether
}
case go
ip/ipconfig ether /net/ether0 unbind
case checkdone
stopether=notdone
export stopether
}