X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/93701b2bec2b99d8113d8a6d9b97153e87a7e5aa..88d99188b8fdc9b172b74e41db418a9b85b13ae0:/openwrt/package/base-files/default/sbin/mount_root diff --git a/openwrt/package/base-files/default/sbin/mount_root b/openwrt/package/base-files/default/sbin/mount_root index 38252e83f..88a836c80 100755 --- a/openwrt/package/base-files/default/sbin/mount_root +++ b/openwrt/package/base-files/default/sbin/mount_root @@ -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