From b0aca811b6827bf43727cd0445846374414d64cf Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 23 Mar 2010 20:09:39 -0400 Subject: [PATCH] Oops, fix option handling in sysresccd-usbstick (unedited copy/paste) --- .../sys-apps/sysresccd-scripts/files/sysresccd-usbstick | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/portage-overlay/sys-apps/sysresccd-scripts/files/sysresccd-usbstick b/portage-overlay/sys-apps/sysresccd-scripts/files/sysresccd-usbstick index fb9439e..834f534 100755 --- a/portage-overlay/sys-apps/sysresccd-scripts/files/sysresccd-usbstick +++ b/portage-overlay/sys-apps/sysresccd-scripts/files/sysresccd-usbstick @@ -39,7 +39,7 @@ Commands (execute in that order): -i ISODIR Set the mount directory for the stock SysRescCD iso ($ISODIR) -u USBDIR Set the directory for mounting the USB stick ($USBDIR) -m SYSLINUX Set the syslinux program ($SYSLINUX) - -s MINSIZEMB Minimal size required for SysRescCD in mega-bytes + -s MINSIZEMB Minimal size required for SysRescCD in mega-bytes ($MINSIZEMB) dialog Dialog to make SystemRescueCD-USB-Sticks Distributed under the GNU Public License version 2 - http://www.sysresccd.org @@ -482,12 +482,13 @@ then exit 1 fi -while getopts ":ui:r:w:m:" Option +while getopts ":i:u:m:s:" Option do case $Option in i ) ISODIR="$OPTARG";; - r ) ROOTDIR="$OPTARG";; - w ) WORKDIR="$OPTARG";; + u ) USBDIR="$OPTARG";; + m ) SYSLINUX="$OPTARG";; + s ) MINSIZEMB="$OPTARG";; * ) usage; exit 1;; # Default, handles -h esac done -- 2.26.2