diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-05-07 17:23:25 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-05-07 17:23:25 +0000 |
commit | d99ce2f89a26bc3565013a92a0f1b285fa7dfdd9 (patch) | |
tree | 5e963910cdf0ce777cbc862e93718f495d1590b4 /contrib/package/olsrd-luci | |
parent | 8cebaa45d6cd56347d18ab7c18fe6d6cf0040d0b (diff) |
contrib/package/olsrd-luci: disable icmp redirects on startup and re-enable on stop
Diffstat (limited to 'contrib/package/olsrd-luci')
-rwxr-xr-x | contrib/package/olsrd-luci/files/etc/init.d/olsrd | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/package/olsrd-luci/files/etc/init.d/olsrd b/contrib/package/olsrd-luci/files/etc/init.d/olsrd index d9e5a8d8c..f9d031aee 100755 --- a/contrib/package/olsrd-luci/files/etc/init.d/olsrd +++ b/contrib/package/olsrd-luci/files/etc/init.d/olsrd @@ -527,6 +527,9 @@ start() { fi fi + ### disable icmp redirects + echo 0 > /proc/sys/net/ipv4/conf/all/send_redirects + SYSTEM_HOSTNAME= SYSTEM_LAT= SYSTEM_LON= @@ -567,6 +570,9 @@ start() { stop() { ### stop olsrd start-stop-daemon -q -p $PID -x $BIN -K + + ### re-enable icmp redirects + echo 1 > /proc/sys/net/ipv4/conf/all/send_redirects } restart() { |