# HG changeset patch # User Pascal Bellard # Date 1296931396 -3600 # Node ID 017ba72f13814b7ec431e2f1d1bd924fcfd2e47e # Parent 4f70798e8afa69f9a5ffd412ae1a475b8ca9c2cf syslinux: add help in isohybrid diff -r 4f70798e8afa -r 017ba72f1381 syslinux/stuff/tools/isohybrid.sh --- a/syslinux/stuff/tools/isohybrid.sh Sat Feb 05 12:30:30 2011 +0000 +++ b/syslinux/stuff/tools/isohybrid.sh Sat Feb 05 19:43:16 2011 +0100 @@ -22,25 +22,35 @@ while [ -n "$1" ]; do case "$1" in - -ct*) hd0=2;; - -e*) entry=$2; shift;; - -f*) hd0=1;; - -h) heads=$2; shift;; - -i*) id=$(($2)); shift;; - -noh*) hd0=0;; - -nop*) partok=0;; - -o*) offset=$(($2)); shift;; - -p*) partok=1;; - -s) sectors=$2; shift;; - -t*) partype=$(($2 & 255)); shift;; - *) iso=$1;; + -ct*) hd0=2;; + -e*|--e*) entry=$2; shift;; + -f*) hd0=1;; + -h) heads=$2; shift;; + -i|--i**) id=$(($2)); shift;; + -noh*) hd0=0;; + -nop*) partok=0;; + -o*|--o*) offset=$(($2)); shift;; + -p*) partok=1;; + -s) sectors=$2; shift;; + -t*|--t*) partype=$(($2 & 255)); shift;; + *) iso=$1;; esac shift done if [ ! -f "$iso" ]; then cat << EOT -usage: $0 isoimage +usage: $0 [options] isoimage +options: + -h Number of default geometry heads + -s Number of default geometry sectors + -e --entry Specify partition entry number (1-4) + -o --offset Specify partition offset (default 0) + -t --type Specify partition type (default 0x17) + -i --id Specify MBR ID (default random) + --forcehd0 Assume we are loaded as disk ID 0 + --ctrlhd0 Assume disk ID 0 if the Ctrl key is pressed + --partok Allow booting from within a partition EOT exit 1 fi