From: Eric Bénard Date: Tue, 21 Sep 2010 08:41:09 +0000 (+0200) Subject: ppp: fix poff X-Git-Tag: sz_154~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bda10b4d7ee1f76a85ef3ad95b61b0859d6a3f4;p=openembedded.git ppp: fix poff * the pid file contains several lines which breaks poff, even if only one pppd is running 753 ppp0 753 pppd version 2.4.5 * by using pidoff to kill pppd this script works again Signed-off-by: Eric Bénard --- diff --git a/recipes/ppp/files/poff b/recipes/ppp/files/poff index 0521a9406a..b2042efd17 100644 --- a/recipes/ppp/files/poff +++ b/recipes/ppp/files/poff @@ -2,6 +2,7 @@ # Lets see how many pppds are running.... set -- `cat /var/run/ppp*.pid 2>/dev/null` +set -- `pidof pppd` case $# in 0) # pppd only creates a pid file once ppp is up, so let's try killing pppd