1
0

stopether 269 B

1234567891011121314151617181920
  1. #!/bin/rc
  2. # desc: shut down the ethernet connection
  3. # prereq:
  4. switch($1) {
  5. case checkready
  6. if(! isipdevup /net/ether0) {
  7. stopether=notdone
  8. export stopether
  9. }
  10. case go
  11. ip/ipconfig ether /net/ether0 unbind
  12. case checkdone
  13. stopether=notdone
  14. export stopether
  15. }