From: Philip Homburg Date: Wed, 15 Feb 2006 11:03:28 +0000 (+0000) Subject: Accept optional device parameter for cdfdboot. X-Git-Tag: v3.1.2a~363 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/Bv9ARM.ch09.html?a=commitdiff_plain;h=d4bb027db572c7016b89249a11eb41b779fec2f3;p=minix.git Accept optional device parameter for cdfdboot. --- diff --git a/tools/mkboot b/tools/mkboot index 003085099..06824f3ef 100755 --- a/tools/mkboot +++ b/tools/mkboot @@ -9,10 +9,10 @@ mdec=/usr/mdec # bootstraps # Check arguments. case "$#:$1" in -1:bootable | 1:hdboot | [12]:fdboot | 1:cdfdboot ) +1:bootable | 1:hdboot | [12]:fdboot | [12]:cdfdboot ) action=$1 dev=$2 ;; -*) echo "Usage: $0 [bootable | hdboot | cdfdboot | fdboot [device]]" >&2 +*) echo "Usage: $0 [bootable | hdboot | cdfdboot | fdboot [device]] | cdfdboot [device]" >&2 exit 1 esac @@ -164,7 +164,10 @@ fdboot) cdfdboot) # cdfdboot: Make a boot floppy image to go on a CD for booting from. - dev=/dev/ram + if [ -z "$dev" ] + then + dev=/dev/ram + fi umount $dev 2>/dev/null if mkfs -B 1024 -b 1440 -i 512 $dev || exit 1 then :