base-files: Fix IPv6 early sysctls again
[openwrt/svn-archive/archive.git] / package / base-files / files / etc / init.d / boot
index 18003423676e2ef69f3bf6ae96794efd1452e980..005c4ad6f8f6de4def619844e3a7b792396534f0 100755 (executable)
@@ -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() {