X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=scripts%2Fpoff;h=5b45d98a2b6afea557772d07949d1615c12237dd;hb=HEAD;hp=3f55a7f40010db8d976d71fb454da725feef4edd;hpb=18f515f32c9f5723a9c2c912601e04335106534b;p=ppp.git diff --git a/scripts/poff b/scripts/poff index 3f55a7f..5b45d98 100644 --- a/scripts/poff +++ b/scripts/poff @@ -91,7 +91,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}."