summaryrefslogtreecommitdiff
path: root/EFI/BOOT/tools.cfg
diff options
context:
space:
mode:
authorPatrick J Volkerding <volkerdi@slackware.com>2013-11-04 17:08:47 +0000
committerEric Hameleers <alien@slackware.com>2018-05-31 22:57:36 +0200
commit76fc4757ac91ac7947a01fb7b53dddf9a78a01d1 (patch)
tree9b98e6e193c7870cb27ac861394c1c4592850922 /EFI/BOOT/tools.cfg
parent9664bee729d487bcc0a0bc35859f8e13d5421c75 (diff)
downloadcurrent-76fc4757ac91ac7947a01fb7b53dddf9a78a01d1.tar.gz
Slackware 14.1slackware-14.1
Mon Nov 4 17:08:47 UTC 2013 Slackware 14.1 x86_64 stable is released! It's been another interesting release cycle here at Slackware bringing new features like support for UEFI machines, updated compilers and development tools, the switch from MySQL to MariaDB, and many more improvements throughout the system. Thanks to the team, the upstream developers, the dedicated Slackware community, and everyone else who pitched in to help make this release a reality. The ISOs are off to be replicated, a 6 CD-ROM 32-bit set and a dual-sided 32-bit/64-bit x86/x86_64 DVD. Please consider supporting the Slackware project by picking up a copy from store.slackware.com. We're taking pre-orders now, and offer a discount if you sign up for a subscription. Have fun! :-)
Diffstat (limited to 'EFI/BOOT/tools.cfg')
-rw-r--r--EFI/BOOT/tools.cfg43
1 files changed, 43 insertions, 0 deletions
diff --git a/EFI/BOOT/tools.cfg b/EFI/BOOT/tools.cfg
new file mode 100644
index 00000000..22675b2b
--- /dev/null
+++ b/EFI/BOOT/tools.cfg
@@ -0,0 +1,43 @@
+# This file is part of Super GRUB2 Disk.
+#
+# Copyright (C) 2013 Adrian Gibanel
+#
+# Super GRUB2 Disk is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# Super GRUB2 Disk is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# This script contains several helper functions used in other cfg files .
+
+
+
+# Function: searchindevice
+# According to global variables
+# Return 0 (true) if the device should be searched for OS / cfgs / etc.
+# Return 1 (false) if it should not be searched
+#
+# Device should be entered without ()
+# Input example: fd0
+#
+# TODO: To be simplified when test function is fixed in upstream GRUB2
+function searchindevice {
+
+ set device=$1
+
+ if [ '(' "$device" != "fd0" -a "$device" != "cd" ')' \
+ -o \
+ '(' "$device" = "fd0" -a "$fd0search" = "yes" ')' \
+ -o \
+ '(' "$device" = "cd" -a "$cdsearch" = "yes" ')' ] \
+ ; then
+ return 0;
+ else
+ return 1;
+ fi
+
+}