summaryrefslogtreecommitdiff
blob: 9c51ad5ae735084b1ddec1e51b2c99d2c78912f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff -urN rp-pppoe-3.5.orig/scripts/adsl-stop.in rp-pppoe-3.5/scripts/adsl-stop.in
--- rp-pppoe-3.5.orig/scripts/adsl-stop.in	2004-11-14 23:20:30.000000000 +0200
+++ rp-pppoe-3.5/scripts/adsl-stop.in	2004-11-14 23:55:59.293032800 +0200
@@ -62,12 +62,12 @@
 	echo "$ME: The adsl-connect script (PID $PID) appears to have died" >& 2
     fi
 
-    # Kill pppd, which should in turn kill pppoe
-    if [ -r "$PPPD_PIDFILE" ] ; then
-	PPPD_PID=`cat "$PPPD_PIDFILE"`
-	$LOGGER -p daemon.notice "Killing pppd"
-	echo "Killing pppd ($PPPD_PID)"
-	kill $PPPD_PID > /dev/null 2>&1 || exit 1
+    # Kill pppoe, which should in turn kill pppd
+    if [ -r "$PPPOE_PIDFILE" ] ; then
+	PPPOE_PID=`cat "$PPPOE_PIDFILE"` 
+	$LOGGER -p daemon.notice "Killing pppoe" 
+	echo "Killing pppoe ($PPPOE_PID)" 
+	kill -SIGHUP $PPPOE_PID > /dev/null 2>&1 || exit 1 
     fi
 
     # Kill adsl-start