base-files: Fix race-conditions with IPv6 sysctls
[openwrt/openwrt.git] / package / base-files / files / etc / init.d / boot
index ef97383d8d9c4b7b47bd87df599dd349b33a5444..18003423676e2ef69f3bf6ae96794efd1452e980 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() {