diff --git a/poff b/poff index 8b4dffc..9acfe91 100644 --- a/poff +++ b/poff @@ -60,7 +60,7 @@ esac # Get the PIDs of all the pppds running. Could also get these from # /var/run, but pppd doesn't create .pid files until ppp is up. -PIDS=`pidof pppd` +PIDS=`pgrep ^pppd$` # poff is pointless if pppd isn't running. if test -z "$PIDS"; then