1
--- ppp-2.4.0b4.orig/scripts/poff
2
+++ ppp-2.4.0b4/scripts/poff
6
+# Lets see how many pppds are running....
7
+set -- `cat /var/run/ppp*.pid 2>/dev/null`
10
+ 0) # pppd only creates a pid file once ppp is up, so let's try killing pppd
11
+ # on the assumption that we've not got that far yet.
14
+ 1) # If only one was running then it can be killed (apparently killall
15
+ # caused problems for some, so lets try killing the pid from the file)
18
+ *) # More than one! Aieehh.. Dont know which one to kill.
19
+ echo "More than one pppd running. None stopped"
24
+if [ -r /var/run/ppp-quick ]
26
+ rm -f /var/run/ppp-quick