X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=functions.sh;h=8e2b34c07d5efb3ed1861d3e9edc43efbcf8b160;hb=327c21cdf7408afb43afb62b6cc7dda9806a540d;hp=82e055611d2357be37a3414b3b40fd5ef9711ebf;hpb=1b8908f7f5d529e47c6b23b40dad694563b6dffc;p=xodist diff --git a/functions.sh b/functions.sh index 82e0556..8e2b34c 100644 --- a/functions.sh +++ b/functions.sh @@ -28,75 +28,6 @@ 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<