X-Git-Url: https://code.delx.au/refind/blobdiff_plain/3dd83b854add24b49f7ae8db532e9c4934f2a7f9..ed4abdfc513e5e1b005aeaf54e230194c76978ec:/mkrlconf.sh diff --git a/mkrlconf.sh b/mkrlconf.sh index 0a5d307..478cd44 100755 --- a/mkrlconf.sh +++ b/mkrlconf.sh @@ -3,7 +3,7 @@ # Script to create a refind_linux.conf file for the current Linux # installation. -# copyright (c) 2012 by Roderick W. Smith +# copyright (c) 2012-2015 by Roderick W. Smith # # This program is licensed under the terms of the GNU GPL, version 3, # a copy of which should be distributed with this program. @@ -18,6 +18,7 @@ # Revision history: # +# 0.9.0 -- 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....