1
0

poff 251 B

123456789101112
  1. #!/bin/sh
  2. PID=`ps w | grep "[ /]pppd call $1\( .*\)*\$" | awk '{print $1}'`
  3. if test -n "$PID" ; then
  4. kill $PID || {
  5. echo "$0: kill failed."
  6. exit 1
  7. }
  8. else
  9. echo "$0: I could not find a pppd process for provider '$1'."
  10. exit 1
  11. fi
  12. exit 0