fix a bug that prevents the wgt634u from initializing the filesystem properly
[openwrt.git] / package / base-files / default / sbin / mount_root
index 38252e8..88a836c 100755 (executable)
@@ -22,9 +22,13 @@ if [ "$1" != "failsafe" ]; then
                . /bin/firstboot
                is_dirty 
                [ $? != 0 ] && {
-                       mount /dev/mtdblock/4 /jffs
+                       echo "switching to jffs2"
+                       mount /dev/mtdblock/4 /jffs -t jffs2
                        pivot /jffs /rom
-               } || ramoverlay
+               } || {
+                       echo "jffs2 unusable; using ramdisk"
+                       ramoverlay
+               }
        fi
 fi
 
This page took 0.024205 seconds and 4 git commands to generate.