aboutsummaryrefslogtreecommitdiffstats
path: root/main/rp-pppoe/rp-pppoe.initd
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2011-08-29 11:38:31 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2011-08-29 11:38:31 +0000
commit8ba06a905e2a5d3c03d0dfde392dcfe052cd0371 (patch)
treec823de72b1e0b09bafe1f04ab7c654d0e53a39eb /main/rp-pppoe/rp-pppoe.initd
parent72c16426eac01b5ad07af6d59f8e8d50c557e1f5 (diff)
downloadaports-8ba06a905e2a5d3c03d0dfde392dcfe052cd0371.tar.bz2
aports-8ba06a905e2a5d3c03d0dfde392dcfe052cd0371.tar.xz
main/rp-pppoe: fixed init script without set/unset ip_forward, added it to post-install script
Diffstat (limited to 'main/rp-pppoe/rp-pppoe.initd')
-rw-r--r--main/rp-pppoe/rp-pppoe.initd3
1 files changed, 0 insertions, 3 deletions
diff --git a/main/rp-pppoe/rp-pppoe.initd b/main/rp-pppoe/rp-pppoe.initd
index 3e6ce3edba..1861199965 100644
--- a/main/rp-pppoe/rp-pppoe.initd
+++ b/main/rp-pppoe/rp-pppoe.initd
@@ -8,14 +8,12 @@ start() {
ebegin "Starting PPPOE Server"
test -x /usr/sbin/pppoe-server -a -f /etc/ppp/pppoe-server-options || exit 0
start-stop-daemon --start --exec /usr/sbin/pppoe-server -- ${PPPOE_PARAMS}
- echo 1 > /proc/sys/net/ipv4/ip_forward
eend $?
}
stop () {
ebegin "Stopping PPPOE Server"
start-stop-daemon --stop --exec /usr/sbin/pppoe-server
- echo 0 > /proc/sys/net/ipv4/ip_forward
eend $?
}
@@ -24,7 +22,6 @@ restart () {
start-stop-daemon --stop --exec /usr/sbin/pppoe-server
sleep 1
start-stop-daemon --start --exec /usr/sbin/pppoe-server -- ${PPPOE_PARAMS}
- echo 1 > /proc/sys/net/ipv4/ip_forward
echo "."
}