diff options
author | 2004-06-15 03:12:35 +0000 | |
---|---|---|
committer | 2004-06-15 03:12:35 +0000 | |
commit | 6104ee41a6fd5e511220b1f9707347a7042af8c3 (patch) | |
tree | 5fc475831828eae4be081f57b3de7df06e7d4f9e /net-dialup/rp-pppoe/files | |
parent | version bump (diff) | |
download | historical-6104ee41a6fd5e511220b1f9707347a7042af8c3.tar.gz historical-6104ee41a6fd5e511220b1f9707347a7042af8c3.tar.bz2 historical-6104ee41a6fd5e511220b1f9707347a7042af8c3.zip |
Add pidfile override to enable net.eth0 changes to support adsl for bug 24975 (net.eth0 with support for bringing up adsl interfaces)
Diffstat (limited to 'net-dialup/rp-pppoe/files')
-rw-r--r-- | net-dialup/rp-pppoe/files/digest-rp-pppoe-3.5-r1 | 1 | ||||
-rw-r--r-- | net-dialup/rp-pppoe/files/rp-pppoe-3.5-pidfile.patch | 93 |
2 files changed, 94 insertions, 0 deletions
diff --git a/net-dialup/rp-pppoe/files/digest-rp-pppoe-3.5-r1 b/net-dialup/rp-pppoe/files/digest-rp-pppoe-3.5-r1 new file mode 100644 index 000000000000..f73d1dfb1b55 --- /dev/null +++ b/net-dialup/rp-pppoe/files/digest-rp-pppoe-3.5-r1 @@ -0,0 +1 @@ +MD5 97972f8f8f6a3ab9b7070333a6a29c4b rp-pppoe-3.5.tar.gz 189321 diff --git a/net-dialup/rp-pppoe/files/rp-pppoe-3.5-pidfile.patch b/net-dialup/rp-pppoe/files/rp-pppoe-3.5-pidfile.patch new file mode 100644 index 000000000000..206b0b1d5caa --- /dev/null +++ b/net-dialup/rp-pppoe/files/rp-pppoe-3.5-pidfile.patch @@ -0,0 +1,93 @@ +This patch allows Gentoo to reliably shut down the interface even if +the configuration changes between "net.eth0 up" and "net.eth0 down" +(14 Jun 2004 agriffis) + +--- rp-pppoe-3.5/configs/pppoe.conf.agriffis 2002-07-08 10:38:24.000000000 -0400 ++++ rp-pppoe-3.5/configs/pppoe.conf 2004-06-14 22:12:01.412927476 -0400 +@@ -86,6 +86,11 @@ + # $PIDFILE contains PID of adsl-connect script + # $PIDFILE.pppoe contains PID of pppoe process + # $PIDFILE.pppd contains PID of pppd process ++# ++# NB: When adsl-start is called from net.eth0, PIDFILE is overruled by ++# a Gentoo patch to adsl-start to allow proper shutdown of devices ++# even when configuration changes. In that case, the PIDFILE setting ++# here has no effect. + CF_BASE=`basename $CONFIG` + PIDFILE="/var/run/$CF_BASE-adsl.pid" + +--- rp-pppoe-3.5/scripts/adsl-stop.in.agriffis 2002-07-08 10:38:24.000000000 -0400 ++++ rp-pppoe-3.5/scripts/adsl-stop.in 2004-06-14 22:12:01.414927139 -0400 +@@ -38,6 +38,14 @@ + + . $CONFIG + ++# For Gentoo, override the PIDFILE with our own definition ++# based on the interface. This makes it possible to reliably ++# shut down ADSL on an interface even if configuration ++# changes. GENTOO_PIDFILE is set in /etc/init.d/net.eth0 ++if [[ -n ${GENTOO_PIDFILE} ]]; then ++ PIDFILE=${GENTOO_PIDFILE} ++fi ++ + PPPOE_PIDFILE="$PIDFILE.pppoe" + PPPD_PIDFILE="$PIDFILE.pppd" + STARTPID="$PIDFILE.start" +--- rp-pppoe-3.5/scripts/adsl-start.in.agriffis 2002-07-08 10:38:24.000000000 -0400 ++++ rp-pppoe-3.5/scripts/adsl-start.in 2004-06-14 22:12:01.413927308 -0400 +@@ -120,6 +120,14 @@ + + . $CONFIG + ++# For Gentoo, override the PIDFILE with our own definition ++# based on the interface. This makes it possible to reliably ++# shut down ADSL on an interface even if configuration ++# changes. GENTOO_PIDFILE is set in /etc/init.d/net.eth0 ++if [[ -n ${GENTOO_PIDFILE} ]]; then ++ PIDFILE=${GENTOO_PIDFILE} ++fi ++ + # Check for command-line overriding of ETH and USER + case "$#" in + 2|3) +--- rp-pppoe-3.5/scripts/adsl-connect.in.agriffis 2004-06-14 22:27:04.000000000 -0400 ++++ rp-pppoe-3.5/scripts/adsl-connect.in 2004-06-14 22:27:12.234534823 -0400 +@@ -69,6 +69,14 @@ + + . $CONFIG + ++# For Gentoo, override the PIDFILE with our own definition ++# based on the interface. This makes it possible to reliably ++# shut down ADSL on an interface even if configuration ++# changes. GENTOO_PIDFILE is set in /etc/init.d/net.eth0 ++if [[ -n ${GENTOO_PIDFILE} ]]; then ++ PIDFILE=${GENTOO_PIDFILE} ++fi ++ + PPPOE_PIDFILE="$PIDFILE.pppoe" + PPPD_PIDFILE="$PIDFILE.pppd" + +--- rp-pppoe-3.5/scripts/adsl-status.agriffis 2002-07-08 10:38:24.000000000 -0400 ++++ rp-pppoe-3.5/scripts/adsl-status 2004-06-14 22:29:20.678883904 -0400 +@@ -35,6 +35,14 @@ + + . $CONFIG + ++# For Gentoo, override the PIDFILE with our own definition ++# based on the interface. This makes it possible to reliably ++# shut down ADSL on an interface even if configuration ++# changes. GENTOO_PIDFILE is set in /etc/init.d/net.eth0 ++if [[ -n ${GENTOO_PIDFILE} ]]; then ++ PIDFILE=${GENTOO_PIDFILE} ++fi ++ + PPPOE_PIDFILE="$PIDFILE.pppoe" + PPPD_PIDFILE="$PIDFILE.pppd" + +@@ -81,4 +89,4 @@ + + echo "adsl-status: Link is down -- could not find interface corresponding to" + echo "pppd pid $PPPD_PID" +-exit 1 +\ No newline at end of file ++exit 1 |