X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?p=xodist;a=blobdiff_plain;f=functions.sh;h=7318230553a68a1ec7ce3ecbf8bb429ac8a8424f;hp=b6714e57ec86b28f71ccc9ee155226c293baffe9;hb=4147cb5472e422ccff6c96040c303c4cc6e8a120;hpb=fd22e025f6ba5e5c23e5729df1857811cc743fcd diff --git a/functions.sh b/functions.sh index b6714e5..7318230 100644 --- a/functions.sh +++ b/functions.sh @@ -27,100 +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<$logpipe 2>&1 -}