xref: /plan9/sys/lib/dist/pc/inst/stopether (revision 9a747e4fd48b9f4522c70c07e8f882a15030f964)
1#!/bin/rc
2
3# desc: shut down the ethernet connection
4# prereq:
5
6
7switch($1) {
8case checkready
9	if(! isipdevup /net/ether0) {
10		stopether=notdone
11		export stopether
12	}
13
14case go
15	ip/ipconfig ether /net/ether0 unbind
16
17case checkdone
18	stopether=notdone
19	export stopether
20}
21