move firstboot to preinit for now (until a better solution is implemented), required...
authorFelix Fietkau <nbd@openwrt.org>
Wed, 4 Jan 2006 23:50:17 +0000 (23:50 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 4 Jan 2006 23:50:17 +0000 (23:50 +0000)
SVN-Revision: 2830

openwrt/package/base-files/default/etc/init.d/S10boot
openwrt/package/base-files/default/etc/preinit

index 9dd0beb1c7da6bd1c22121438125372be36aadbd..02fddee7ba8a805d6668f486c7bc3db48f4b6f0c 100755 (executable)
@@ -11,11 +11,6 @@ HOSTNAME=$(nvram get wan_hostname)
 HOSTNAME=${HOSTNAME%%.*}
 echo ${HOSTNAME:=OpenWrt}>/proc/sys/kernel/hostname
 
-# automagically run firstboot
-[ -z "$FAILSAFE" -a -z "$(nvram get no_root_swap)" ] && {
-       { mount|grep "on / type jffs2" 1>&-; } || firstboot
-}
-
 mkdir -p /var/run
 mkdir -p /var/log
 touch /var/log/wtmp
index 88c8920c9416dfdd867f2160d6f8b09526b1f3b2..ac9039ca7175f5d7681b3704a118877827e57764 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