aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/ppp
diff options
context:
space:
mode:
authorEric Bénard <eric@eukrea.com>2010-09-21 10:41:09 +0200
committerEric Bénard <eric@eukrea.com>2010-09-24 15:15:29 +0200
commitdd955396c4521a882e037eae75bede4c647fd4b7 (patch)
treea13a23cfd4d80ae835c02ae968cd874edc6e8dee /recipes/ppp
parent1316a0c0c4fe95bf6abce0b2f6aec32fabf17637 (diff)
downloadopenembedded-dd955396c4521a882e037eae75bede4c647fd4b7.tar.gz
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 <eric@eukrea.com>
Diffstat (limited to 'recipes/ppp')
-rw-r--r--recipes/ppp/files/poff1
1 files changed, 1 insertions, 0 deletions
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