ref: aa2f5f17f52ef838a2352b5eb92bf6b4ebd48815
dir: /rc/bin/inst/stopether/
#!/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
}