move firstboot to preinit for now (until a better solution is implemented), required...
[openwrt.git] / openwrt / package / base-files / default / etc / preinit
index 88c8920..ac9039c 100755 (executable)
@@ -16,4 +16,9 @@ fi
 
 mount_root ${FAILSAFE:+failsafe}
 
+# automagically run firstboot
+[ -z "$FAILSAFE" -a -z "$(nvram get no_root_swap)" ] && {
+       { mount|grep "on / type jffs2" 1>&-; } || firstboot
+}
+
 exec /sbin/init
This page took 0.025315 seconds and 4 git commands to generate.