From dd955396c4521a882e037eae75bede4c647fd4b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eric=20B=C3=A9nard?= Date: Tue, 21 Sep 2010 10:41:09 +0200 Subject: ppp: fix poff MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- recipes/ppp/files/poff | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3