From: W. Trevor King <wking@drexel.edu>
Date: Wed, 24 Mar 2010 00:09:39 +0000 (-0400)
Subject: Oops, fix option handling in sysresccd-usbstick (unedited copy/paste)
X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b0aca811b6827bf43727cd0445846374414d64cf;p=systemrescuecd.git

Oops, fix option handling in sysresccd-usbstick (unedited copy/paste)
---

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