git: 9front

ref: 8f3c3bb310d05d8671c69d7c55e349d86d68e82e
dir: /sys/lib/dist.old/pc/inst/stopether/

View raw version
#!/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
}