- cat >${mntpt}/etc/fstab<<EOF
-${r} / ${fstype} defaults,noatime 1 1
+ echo "${r} / ${fstype} defaults,noatime 1 1" >${mntpt}/etc/fstab
+ if [ "${fstype}" = "jffs2" ]; then
+ echo "mtd:boot /boot jffs2 defaults,noatime 1 1" >>${mntpt}/etc/fstab
+ fi
+
+ cat >>${mntpt}/etc/fstab<<EOF