X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?p=xodist;a=blobdiff_plain;f=functions.sh;h=7318230553a68a1ec7ce3ecbf8bb429ac8a8424f;hp=371a03bd058c39e8ee17bad56badcf82a250d96f;hb=4147cb5472e422ccff6c96040c303c4cc6e8a120;hpb=b0cf26497c224742aa08d18865c349b4670db796 diff --git a/functions.sh b/functions.sh index 371a03b..7318230 100644 --- a/functions.sh +++ b/functions.sh @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/bash -e # # Copyright © 2008 Andres Salomon # @@ -27,77 +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=mtd0 - else - r="LABEL=${IMG_LABEL}" - fi - - cat >${mntpt}/etc/fstab<${mntpt}/boot/olpc.fth<