diff options
Diffstat (limited to 'net-dialup/rp-pppoe/files/3.5-adsl-stop.patch')
-rw-r--r-- | net-dialup/rp-pppoe/files/3.5-adsl-stop.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/net-dialup/rp-pppoe/files/3.5-adsl-stop.patch b/net-dialup/rp-pppoe/files/3.5-adsl-stop.patch new file mode 100644 index 000000000000..9c51ad5ae735 --- /dev/null +++ b/net-dialup/rp-pppoe/files/3.5-adsl-stop.patch @@ -0,0 +1,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 |