X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?p=xodist;a=blobdiff_plain;f=functions.sh;h=7318230553a68a1ec7ce3ecbf8bb429ac8a8424f;hp=46705f6f3787ba635bcc9ae19af0d61ce2692ec5;hb=4147cb5472e422ccff6c96040c303c4cc6e8a120;hpb=a4958839c3cffc01a659344996ef0ee6aea86796 diff --git a/functions.sh b/functions.sh index 46705f6..7318230 100644 --- a/functions.sh +++ b/functions.sh @@ -27,90 +27,3 @@ check_for_cmds() return 0 } - -# @mntpt - path to mounted root directory -# @fstype - the root filesystem type (in a form that 'mount' understands) -create_fstab() -{ - mntpt="$1" - fstype="$2" - - if [ "${fstype}" = "jffs2" ]; then - r=mtd:root - else - r="LABEL=${IMG_LABEL}" - fi - - 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<${mntpt}/boot/olpc.fth<