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..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}."