X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?p=xodist;a=blobdiff_plain;f=functions.sh;h=7318230553a68a1ec7ce3ecbf8bb429ac8a8424f;hp=29d4ae99eaf954c1cce6bc394ba7bbb719375ec0;hb=4147cb5472e422ccff6c96040c303c4cc6e8a120;hpb=97a85aa96a97476f49c6caaa754d5144dbc903b9 diff --git a/functions.sh b/functions.sh index 29d4ae9..7318230 100644 --- a/functions.sh +++ b/functions.sh @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/bash -e # # Copyright © 2008 Andres Salomon # @@ -27,86 +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<