fixed grub-install.in
This commit is contained in:
parent
5562834e18
commit
1c1261d985
1 changed files with 34 additions and 1 deletions
|
@ -105,7 +105,11 @@ EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
# Check the arguments.
|
# Check the arguments.
|
||||||
for option in "$@"; do
|
while test $# -gt 0
|
||||||
|
do
|
||||||
|
option=$1
|
||||||
|
shift
|
||||||
|
|
||||||
case "$option" in
|
case "$option" in
|
||||||
-h | --help)
|
-h | --help)
|
||||||
usage
|
usage
|
||||||
|
@ -113,33 +117,62 @@ for option in "$@"; do
|
||||||
-v | --version)
|
-v | --version)
|
||||||
echo "grub-install (GNU GRUB ${PACKAGE_VERSION})"
|
echo "grub-install (GNU GRUB ${PACKAGE_VERSION})"
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
|
|
||||||
|
--modules)
|
||||||
|
modules=$1; shift;;
|
||||||
--modules=*)
|
--modules=*)
|
||||||
modules=`echo "$option" | sed 's/--modules=//'` ;;
|
modules=`echo "$option" | sed 's/--modules=//'` ;;
|
||||||
|
|
||||||
|
--font)
|
||||||
|
font=$1; shift;;
|
||||||
--font=*)
|
--font=*)
|
||||||
font=`echo "$option" | sed 's/--font=//'` ;;
|
font=`echo "$option" | sed 's/--font=//'` ;;
|
||||||
|
|
||||||
|
--root-directory)
|
||||||
|
rootdir=$1; shift;;
|
||||||
--root-directory=*)
|
--root-directory=*)
|
||||||
rootdir=`echo "$option" | sed 's/--root-directory=//'` ;;
|
rootdir=`echo "$option" | sed 's/--root-directory=//'` ;;
|
||||||
|
|
||||||
|
--grub-setup)
|
||||||
|
grub_setup=$1; shift;;
|
||||||
--grub-setup=*)
|
--grub-setup=*)
|
||||||
grub_setup=`echo "$option" | sed 's/--grub-setup=//'` ;;
|
grub_setup=`echo "$option" | sed 's/--grub-setup=//'` ;;
|
||||||
|
|
||||||
|
--grub-mkimage)
|
||||||
|
grub_mkimage=$1; shift;;
|
||||||
--grub-mkimage=*)
|
--grub-mkimage=*)
|
||||||
grub_mkimage=`echo "$option" | sed 's/--grub-mkimage=//'` ;;
|
grub_mkimage=`echo "$option" | sed 's/--grub-mkimage=//'` ;;
|
||||||
|
|
||||||
|
--grub-mkdevicemap)
|
||||||
|
grub_mkdevicemap=$1; shift;;
|
||||||
--grub-mkdevicemap=*)
|
--grub-mkdevicemap=*)
|
||||||
grub_mkdevicemap=`echo "$option" | sed 's/--grub-mkdevicemap=//'` ;;
|
grub_mkdevicemap=`echo "$option" | sed 's/--grub-mkdevicemap=//'` ;;
|
||||||
|
|
||||||
|
--grub-probe)
|
||||||
|
grub_probe=$1; shift;;
|
||||||
--grub-probe=*)
|
--grub-probe=*)
|
||||||
grub_probe=`echo "$option" | sed 's/--grub-probe=//'` ;;
|
grub_probe=`echo "$option" | sed 's/--grub-probe=//'` ;;
|
||||||
|
|
||||||
--no-floppy)
|
--no-floppy)
|
||||||
no_floppy="--no-floppy" ;;
|
no_floppy="--no-floppy" ;;
|
||||||
--recheck)
|
--recheck)
|
||||||
recheck=yes ;;
|
recheck=yes ;;
|
||||||
|
|
||||||
|
--disk-module)
|
||||||
|
if [ "${target_cpu}-${platform}" = "i386-pc" ] ; then
|
||||||
|
disk_module=$1; shift;
|
||||||
|
fi ;;
|
||||||
--disk-module=*)
|
--disk-module=*)
|
||||||
if [ "${target_cpu}-${platform}" = "i386-pc" ] ; then
|
if [ "${target_cpu}-${platform}" = "i386-pc" ] ; then
|
||||||
disk_module=`echo "$option" | sed 's/--disk-module=//'`
|
disk_module=`echo "$option" | sed 's/--disk-module=//'`
|
||||||
fi ;;
|
fi ;;
|
||||||
|
|
||||||
# This is an undocumented feature...
|
# This is an undocumented feature...
|
||||||
--debug)
|
--debug)
|
||||||
debug=yes ;;
|
debug=yes ;;
|
||||||
-f | --force)
|
-f | --force)
|
||||||
setup_force="--force" ;;
|
setup_force="--force" ;;
|
||||||
|
|
||||||
-*)
|
-*)
|
||||||
echo "Unrecognized option \`$option'" 1>&2
|
echo "Unrecognized option \`$option'" 1>&2
|
||||||
usage
|
usage
|
||||||
|
|
Loading…
Reference in a new issue