]> code.delx.au - refind/blobdiff - mkrlconf.sh
Added OS check to mkrlconf.sh. Bypass checks for BIOS-mode boot
[refind] / mkrlconf.sh
index 0a5d307e987a02e763146a1661624d60f84613fc..9028ef048a6f88bfb9af669cc176c2be9fe31d76 100755 (executable)
@@ -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
 #
 
 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....