]> git.lizzy.rs Git - plan9front.git/blob - rc/bin/inst/stopether
inst/partdisk: fix issue #76
[plan9front.git] / rc / bin / inst / stopether
1 #!/bin/rc
2
3 # desc: shut down the ethernet connection
4 # prereq:
5
6
7 switch($1) {
8 case checkready
9         if(! isipdevup /net/ether0) {
10                 stopether=notdone
11                 export stopether
12         }
13
14 case go
15         ip/ipconfig ether /net/ether0 unbind
16
17 case checkdone
18         stopether=notdone
19         export stopether
20 }