]> git.ozlabs.org Git - ppp.git/blobdiff - scripts/poff
scripts: Make poff ignore extra arguments to pppd
[ppp.git] / scripts / poff
index 659bfa7f8000291880e25bce4b6f791c945f78e8..3f55a7f40010db8d976d71fb454da725feef4edd 100644 (file)
@@ -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" | awk '{print $1}'`
 if test -n "$PID" ; then
     $KILL -$SIG $PID || {
         echo "$0: $KILL failed.  None ${DONE}."