X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=functions.sh;h=7318230553a68a1ec7ce3ecbf8bb429ac8a8424f;hb=28840f12354790a41fb9e2658226a53e10a76913;hp=00a23a4370d11dfd293b2a70274ad9934cd7e01b;hpb=d2cfda90cb27c7aac9d0956e71344142d2560228;p=xodist diff --git a/functions.sh b/functions.sh index 00a23a4..7318230 100644 --- a/functions.sh +++ b/functions.sh @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/bash -e # # Copyright © 2008 Andres Salomon # @@ -27,57 +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=OLPCRoot" - fi - - cat >${mntpt}/etc/fstab<${mntpt}/boot/olpc.fth<