ref: 43f2d5e7e0b8ca8d24e15fb4ff566827e5a5ae5b
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
}