/proc needs to be mounted before preinit.arch for failsafe
authorMike Baker <mbm@openwrt.org>
Mon, 14 May 2007 05:37:24 +0000 (05:37 +0000)
committerMike Baker <mbm@openwrt.org>
Mon, 14 May 2007 05:37:24 +0000 (05:37 +0000)
SVN-Revision: 7220

package/base-files/files/etc/preinit

index 34befe5ac7bc4a5dd631286888ca9173bfffcf24..d1a6ffd549d3572d14d6abb648e21d2357cc31af 100755 (executable)
@@ -8,10 +8,10 @@ failsafe() {
        ash --login
 }
 
-[ -e /etc/preinit.arch ] && . /etc/preinit.arch
+mount none /proc -t proc
+mount none /sys  -t sysfs
 
-mount -t proc none /proc
-mount -t sysfs none /sys
+[ -e /etc/preinit.arch ] && . /etc/preinit.arch
 
 set_state preinit