···6666ROOTFS_TMP_DIR=/tmp/rootfs
6767mkdir $ROOTFS_TMP_DIR
6868. /install_script/constant.txt
6969-if ! mount -t ext3 -o ro $COMMON_ROOTFS_PARTITION $ROOTFS_TMP_DIR
7070-then
6969+7070+# If there is an ext4 mounter, try it. Otherwise or on failure, try ext3 and
7171+# then ext2.
7272+# NOTE some platforms probably use an mtd and this might need some fixing
7373+if [ -e /usr/local/bin/icx_mount.ext4 ]; then
7474+ /usr/local/bin/icx_mount.ext4 $COMMON_ROOTFS_PARTITION $ROOTFS_TMP_DIR
7575+else
7676+ false
7777+fi
7878+if [ "$?" != 0 ]; then
7979+ mount -t ext3 $COMMON_ROOTFS_PARTITION $ROOTFS_TMP_DIR
8080+fi
8181+if [ "$?" != 0 ]; then
8282+ mount -t ext2 $COMMON_ROOTFS_PARTITION $ROOTFS_TMP_DIR
8383+fi
8484+if [ "$?" != 0 ]; then
7185 lcdmsg -f /usr/local/bin/font_08x12.bmp -l 0,13 "ERROR: cannot mount rootfs"
7286else
7387 tar -cf $DUMP_DIR/rootfs.tar $ROOTFS_TMP_DIR