X-Git-Url: https://code.delx.au/refind/blobdiff_plain/dd6b899c1e1ed61751014257aa873e1d7960549d..d738a7a9d29a6a09673f1d9cad6155c07d0d3875:/mkrlconf.sh diff --git a/mkrlconf.sh b/mkrlconf.sh index 0a5d307..9028ef0 100755 --- a/mkrlconf.sh +++ b/mkrlconf.sh @@ -18,6 +18,7 @@ # Revision history: # +# 0.8.8 -- Added check for OS type, to keep from running pointlessly on OS X # 0.7.7 -- Fixed bug that caused stray PARTUUID= and line breaks in generated file # 0.5.1 -- Initial release # @@ -26,6 +27,12 @@ RLConfFile="/boot/refind_linux.conf" +if [[ `uname -s` != "Linux" ]] ; then + echo "This script is intended to be run from Linux. Aborting!" + echo "" + exit 1 +fi + if [[ ! -f $RLConfFile || $1 == "--force" ]] ; then if [[ -f /etc/default/grub ]] ; then # We want the default options used by the distribution, stored here....