X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=scripts%2Fpoff;h=5b45d98a2b6afea557772d07949d1615c12237dd;hb=HEAD;hp=659bfa7f8000291880e25bce4b6f791c945f78e8;hpb=f234b25aa73603e3c840b8071c819e6202d5fd14;p=ppp.git diff --git a/scripts/poff b/scripts/poff index 659bfa7..38b888b 100644 --- a/scripts/poff +++ b/scripts/poff @@ -1,6 +1,5 @@ #!/bin/sh -# $Id: poff,v 1.1 2002/11/24 23:30:44 etbe Exp $ # Written by John Hasler and based on work # by Phil Hands . Distributed under the GNU GPL @@ -91,7 +90,7 @@ if test "$#" -eq 0 -o "$MODE" = "all" ; then fi # There is an argument, so kill the pppd started on that provider. -PID=`ps axw | grep "[ /]pppd call $1 *\$" | awk '{print $1}'` +PID=`ps axw | grep "[ /]pppd call $1" | grep -w "$1" | awk '{print $1}'` if test -n "$PID" ; then $KILL -$SIG $PID || { echo "$0: $KILL failed. None ${DONE}."