projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2aada2
)
luci-0.8: merge r4479
author
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 7 May 2009 17:24:36 +0000
(17:24 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 7 May 2009 17:24:36 +0000
(17:24 +0000)
contrib/package/olsrd-luci/files/etc/init.d/olsrd
patch
|
blob
|
history
diff --git
a/contrib/package/olsrd-luci/files/etc/init.d/olsrd
b/contrib/package/olsrd-luci/files/etc/init.d/olsrd
index d9e5a8d8c85d49061617fcc424b62a80dc606109..f9d031aee9e761ec82bacf733115698399ce1c59 100755
(executable)
--- 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() {