esac
shift
done
-
+ if [[ "$InstallToEspOnMac" == 0 && "$RootDir" == '/' && "$TargetDir" == '/EFI/BOOT' ]] ; then
+ echo "You may use --notesp OR --usedefault, but not both! Aborting!"
+ exit 1
+ fi
if [[ "$RootDir" != '/' && "$TargetDir" == '/EFI/BOOT' ]] ; then
- echo "You may use --usedefault OR --root, but not both! Aborting!"
+ echo "You may use --root OR --usedefault, but not both! Aborting!"
exit 1
fi
if [[ "$TargetDir" != '/System/Library/CoreServices' && "$OwnHfs" == '1' ]] ; then
echo "If you use --ownhfs, you may NOT use --usedefault! Aborting!"
exit 1
fi
-
RLConfFile="$RootDir/boot/refind_linux.conf"
EtcKeysDir="$RootDir/etc/refind.d/keys"
} # GetParams()
# performs a few startup checks, and then calls functions to
# install under OS X or Linux, depending on the detected platform.
#
-
OSName=`uname -s`
GetParams "$@"
ThisDir="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"