fixed mkconfig and mkrescue scripts

This commit is contained in:
BVK Chaitanya 2010-02-07 10:14:50 +05:30
parent 1c1261d985
commit 7a64e28d0e
2 changed files with 26 additions and 5 deletions

View file

@ -50,7 +50,11 @@ EOF
}
# Check the arguments.
for option in "$@"; do
while test $# -gt 0
do
option=$1
shift
case "$option" in
-h | --help)
usage
@ -58,9 +62,9 @@ for option in "$@"; do
-v | --version)
echo "$0 (GNU GRUB ${package_version})"
exit 0 ;;
-o)
shift
-o | --output)
grub_cfg=$1
shift
;;
--output=*)
grub_cfg=`echo "$option" | sed 's/--output=//'`