stopppp 250 B

12345678910111213141516171819
  1. #!/bin/rc
  2. # desc: shut down the ppp connection
  3. # prereq:
  4. switch($1) {
  5. case checkready
  6. if(! ~ $#pppdev 1 || ! isipdevup '^pkt[0-9]') {
  7. stopppp=notdone
  8. export stopppp
  9. }
  10. case go
  11. kill ppp | rc
  12. case checkdone
  13. stopppp=notdone
  14. export stopppp
  15. }