summaryrefslogtreecommitdiff
path: root/meta/packages/ppp/ppp-2.4.5/poff
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2010-07-01 14:34:12 +0800
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-02 15:28:54 +0100
commit057d63096253b61551dbc2d0ea34a60f58987969 (patch)
tree5b860616fa619ca40b6702c715090a9b47b74edf /meta/packages/ppp/ppp-2.4.5/poff
parent4cf75289108579ac2048178465c98e8c36f39038 (diff)
downloadopenembedded-core-057d63096253b61551dbc2d0ea34a60f58987969.tar.gz
openembedded-core-057d63096253b61551dbc2d0ea34a60f58987969.tar.bz2
openembedded-core-057d63096253b61551dbc2d0ea34a60f58987969.tar.xz
openembedded-core-057d63096253b61551dbc2d0ea34a60f58987969.zip
ppp: Upgraded to version 2.4.5
Removed some patches since they are already in latest package Rebased some patches to fit ppp-2.4.5 Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Diffstat (limited to 'meta/packages/ppp/ppp-2.4.5/poff')
-rw-r--r--meta/packages/ppp/ppp-2.4.5/poff26
1 files changed, 26 insertions, 0 deletions
diff --git a/meta/packages/ppp/ppp-2.4.5/poff b/meta/packages/ppp/ppp-2.4.5/poff
new file mode 100644
index 000000000..0521a9406
--- /dev/null
+++ b/meta/packages/ppp/ppp-2.4.5/poff
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+# Lets see how many pppds are running....
+set -- `cat /var/run/ppp*.pid 2>/dev/null`
+
+case $# in
+ 0) # pppd only creates a pid file once ppp is up, so let's try killing pppd
+ # on the assumption that we've not got that far yet.
+ killall pppd
+ ;;
+ 1) # If only one was running then it can be killed (apparently killall
+ # caused problems for some, so lets try killing the pid from the file)
+ kill $1
+ ;;
+ *) # More than one! Aieehh.. Dont know which one to kill.
+ echo "More than one pppd running. None stopped"
+ exit 1
+ ;;
+esac
+
+if [ -r /var/run/ppp-quick ]
+then
+ rm -f /var/run/ppp-quick
+fi
+
+exit 0