diff options
author | Steven Barth <steven@midlink.org> | 2013-02-01 12:28:24 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2013-02-01 12:28:24 +0000 |
commit | 9cfe24046887c34f44847419173e1dbc02c57478 (patch) | |
tree | 96ecc7d79f360bc4e81e8700f9aa2e29e3f1faea /package/base-files/files/etc/init.d | |
parent | 81c98af4d4f463719d356bc3bd3eba5c03c021fd (diff) | |
download | upstream-9cfe24046887c34f44847419173e1dbc02c57478.tar.gz upstream-9cfe24046887c34f44847419173e1dbc02c57478.tar.bz2 upstream-9cfe24046887c34f44847419173e1dbc02c57478.zip |
base-files: Fix IPv6 early sysctls again
* Kernel IPv6 /proc interface inconsistency caused races
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35417 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/etc/init.d')
-rwxr-xr-x | package/base-files/files/etc/init.d/boot | 8 |
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 1800342367..005c4ad6f8 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() { |