]> spindle.queued.net Git - xodist/blobdiff - mkbootable.sh
add --help/-h support to all scripts
[xodist] / mkbootable.sh
index e13452dcf55b202c840c5fce48e592cd5b5f3bd1..bb2618a322d757ed8f57eac1c3ffb9b5c85b91fc 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # mkbootable.sh, make a bootable file set from a jffs2 image
 # Copyright © 2008  James Cameron <quozl@laptop.org>
@@ -33,7 +33,7 @@ IMAGE_DEFAULT=
 INTERACTIVE=yes
 OUTPUT=${IMAGE_DEFAULT}.bootable
 
-. functions.sh
+. ./functions.sh
 
 images()
 {
@@ -101,7 +101,7 @@ if ! test -d ${OUTPUT}; then
        mkdir ${OUTPUT}
 fi
 
-cp ${IMAGE}.{dat,crc,img} ${OUTPUT}
+cp ${IMAGE}.{dat,img} ${OUTPUT}
 
 mkdir -p ${OUTPUT}/boot
 
@@ -109,12 +109,12 @@ mkdir -p ${OUTPUT}/boot
 cat <<EOF >${OUTPUT}/boot/olpc.fth
 \ OLPC boot script
 
+visible
 cr
 ." This is a debxo bootable install script." cr
 cr
 ." `md5sum ${IMAGE}.img`" cr
 ." `md5sum ${IMAGE}.dat`" cr
-." `md5sum ${IMAGE}.crc`" cr
 cr
 EOF