move firstboot to preinit for now (until a better solution is implemented), required...
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 4 Jan 2006 23:50:17 +0000 (23:50 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 4 Jan 2006 23:50:17 +0000 (23:50 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2830 3c298f89-4303-0410-b956-a3cf2f4a3e73

openwrt/package/base-files/default/etc/init.d/S10boot
openwrt/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
This page took 0.026004 seconds and 4 git commands to generate.