X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=functions.sh;h=8e2b34c07d5efb3ed1861d3e9edc43efbcf8b160;hb=327c21cdf7408afb43afb62b6cc7dda9806a540d;hp=bc78bfbbd941089a855ed841511b7f5bd9cede65;hpb=a57f3edd1fd261978e7d62b84f73a8177fbeabd6;p=xodist diff --git a/functions.sh b/functions.sh index bc78bfb..8e2b34c 100644 --- a/functions.sh +++ b/functions.sh @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/bash -e # # Copyright © 2008 Andres Salomon # @@ -28,76 +28,12 @@ check_for_cmds() return 0 } -# @mntpt - path to mounted root directory -# @fstype - the root filesystem type (in a form that 'mount' understands) -create_fstab() +start_logging() { - mntpt="$1" - fstype="$2" - - if [ "${fstype}" = "jffs2" ]; then - r=mtd0 - else - r="LABEL=OLPCRoot" - fi - - cat >${mntpt}/etc/fstab<${mntpt}/boot/olpc.fth<$logpipe 2>&1 }