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)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2830 3c298f89-4303-0410-b956-a3cf2f4a3e73

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

index 9dd0beb..02fddee 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 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