contrib/package/olsrd-luci: disable icmp redirects on startup and re-enable on stop

This commit is contained in:
Jo-Philipp Wich 2009-05-07 17:23:25 +00:00
parent 8cebaa45d6
commit d99ce2f89a

View file

@ -527,6 +527,9 @@ start() {
fi fi
fi fi
### disable icmp redirects
echo 0 > /proc/sys/net/ipv4/conf/all/send_redirects
SYSTEM_HOSTNAME= SYSTEM_HOSTNAME=
SYSTEM_LAT= SYSTEM_LAT=
SYSTEM_LON= SYSTEM_LON=
@ -567,6 +570,9 @@ start() {
stop() { stop() {
### stop olsrd ### stop olsrd
start-stop-daemon -q -p $PID -x $BIN -K start-stop-daemon -q -p $PID -x $BIN -K
### re-enable icmp redirects
echo 1 > /proc/sys/net/ipv4/conf/all/send_redirects
} }
restart() { restart() {