X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?p=xodist;a=blobdiff_plain;f=functions.sh;h=7318230553a68a1ec7ce3ecbf8bb429ac8a8424f;hp=89f2ff80151febb39aa1fa740f87870485ef993a;hb=4147cb5472e422ccff6c96040c303c4cc6e8a120;hpb=694e2f6997db83ad3c772c2d40ac3a5fe52b3263 diff --git a/functions.sh b/functions.sh index 89f2ff8..7318230 100644 --- a/functions.sh +++ b/functions.sh @@ -27,93 +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 -}