fix a bug that prevents the wgt634u from initializing the filesystem properly
[openwrt/svn-archive/archive.git] / openwrt / package / base-files / default / sbin / mount_root
index 38252e83fe578635c35f8b115d4dbbfdf5de6332..88a836c808f93475ef362697aef392e7cfb7baa4 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