base-files: Fix race-conditions with IPv6 sysctls
[openwrt.git] / package / base-files / files / etc / init.d / boot
index ef97383..1800342 100755 (executable)
@@ -95,6 +95,9 @@ start() {
                rootdev=$(awk 'BEGIN { RS=" "; FS="="; } $1 == "root" { print $2 }' < /proc/cmdline)
                [ -n "$rootdev" ] && ln -s "$rootdev" /dev/root
        }
+
+       # run early sysctl
+       [ -f /etc/sysctl_early.conf ] && sysctl -p /etc/sysctl_early.conf -e >&-
 }
 
 stop() {