shithub: riscv

ref: 7d442e9469261f0efe400ef8f6d05b305cb4cc07
dir: /rc/bin/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
}