summaryrefslogtreecommitdiff
path: root/package/base-files/files/etc/init.d/boot
diff options
context:
space:
mode:
authorSteven Barth <cyrus@openwrt.org>2013-02-01 12:28:24 +0000
committerSteven Barth <cyrus@openwrt.org>2013-02-01 12:28:24 +0000
commit92ad26d1b6b65d33555c773374687f49f55b929c (patch)
treedcd09431b6348bf7042923e6f8080e220d3778f5 /package/base-files/files/etc/init.d/boot
parent416ce374c031979ddd5e2f376ea6f88232f66178 (diff)
downloadmtk-20170518-92ad26d1b6b65d33555c773374687f49f55b929c.zip
mtk-20170518-92ad26d1b6b65d33555c773374687f49f55b929c.tar.gz
mtk-20170518-92ad26d1b6b65d33555c773374687f49f55b929c.tar.bz2
base-files: Fix IPv6 early sysctls again * Kernel IPv6 /proc interface inconsistency caused races
SVN-Revision: 35417
Diffstat (limited to 'package/base-files/files/etc/init.d/boot')
-rwxr-xr-xpackage/base-files/files/etc/init.d/boot8
1 files changed, 6 insertions, 2 deletions
diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot
index 1800342..005c4ad 100755
--- a/package/base-files/files/etc/init.d/boot
+++ b/package/base-files/files/etc/init.d/boot
@@ -96,8 +96,12 @@ start() {
[ -n "$rootdev" ] && ln -s "$rootdev" /dev/root
}
- # run early sysctl
- [ -f /etc/sysctl_early.conf ] && sysctl -p /etc/sysctl_early.conf -e >&-
+ # early sysctl to avoid networking races
+ if [ -d /proc/sys/net/ipv6/conf ]; then
+ for i in /proc/sys/net/ipv6/conf/*/accept_ra; do
+ echo 0 > $i
+ done
+ fi
}
stop() {