summaryrefslogtreecommitdiff
path: root/rc/bin/inst/stopether
blob: 59063f0e049b8186a96041a20ee10efc4ebac9da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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
}