wok-6.x rev 8403

syslinux: add help in isohybrid
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 05 19:43:16 2011 +0100 (2011-02-05)
parents 4f70798e8afa
children f25f2e389934
files syslinux/stuff/tools/isohybrid.sh
line diff
     1.1 --- a/syslinux/stuff/tools/isohybrid.sh	Sat Feb 05 12:30:30 2011 +0000
     1.2 +++ b/syslinux/stuff/tools/isohybrid.sh	Sat Feb 05 19:43:16 2011 +0100
     1.3 @@ -22,25 +22,35 @@
     1.4  
     1.5  while [ -n "$1" ]; do
     1.6  	case "$1" in
     1.7 -	-ct*)	hd0=2;;
     1.8 -	-e*)	entry=$2; shift;;
     1.9 -	-f*)	hd0=1;;
    1.10 -	-h)	heads=$2; shift;;
    1.11 -	-i*)	id=$(($2)); shift;;
    1.12 -	-noh*)	hd0=0;;
    1.13 -	-nop*)	partok=0;;
    1.14 -	-o*)	offset=$(($2)); shift;;
    1.15 -	-p*)	partok=1;;
    1.16 -	-s)	sectors=$2; shift;;
    1.17 -	-t*)	partype=$(($2 & 255)); shift;;
    1.18 -	*)	iso=$1;;
    1.19 +	-ct*)		hd0=2;;
    1.20 +	-e*|--e*)	entry=$2; shift;;
    1.21 +	-f*)		hd0=1;;
    1.22 +	-h)		heads=$2; shift;;
    1.23 +	-i|--i**)	id=$(($2)); shift;;
    1.24 +	-noh*)		hd0=0;;
    1.25 +	-nop*)		partok=0;;
    1.26 +	-o*|--o*)	offset=$(($2)); shift;;
    1.27 +	-p*)		partok=1;;
    1.28 +	-s)		sectors=$2; shift;;
    1.29 +	-t*|--t*)	partype=$(($2 & 255)); shift;;
    1.30 +	*)		iso=$1;;
    1.31  	esac
    1.32  	shift
    1.33  done
    1.34  
    1.35  if [ ! -f "$iso" ]; then
    1.36  	cat << EOT
    1.37 -usage: $0 isoimage
    1.38 +usage: $0 [options] isoimage
    1.39 +options:
    1.40 +	-h <X>		Number of default geometry heads
    1.41 +	-s <X>		Number of default geometry sectors
    1.42 +	-e --entry	Specify partition entry number (1-4)
    1.43 +	-o --offset	Specify partition offset (default 0)
    1.44 +	-t --type	Specify partition type (default 0x17)
    1.45 +	-i --id		Specify MBR ID (default random)
    1.46 +	--forcehd0	Assume we are loaded as disk ID 0
    1.47 +	--ctrlhd0	Assume disk ID 0 if the Ctrl key is pressed
    1.48 +	--partok	Allow booting from within a partition
    1.49  EOT
    1.50  	exit 1
    1.51  fi