grubby/boot/isos.cfg

32 lines
521 B
INI
Raw Normal View History

2020-11-13 00:50:49 +01:00
# Load ISO configuration files
#
insmod regexp
2020-11-13 00:50:49 +01:00
set isopath="/boot/isos"
export isopath
set isoconfdir="${isoconfig}.d"
export isoconfdir
if [ -d "${isoconfdir}" ]; then
echo "${isoconfdir} is a directory"
for conf in ${isoconfdir}/*.cfg; do
if [ ! -f "$conf" ]; then
echo "No valid configuration to read"
break;
fi
echo "Sourcing $conf "
source "${conf}"
2020-11-13 00:50:49 +01:00
done
menuentry ' ' { true }
menuentry "[Esc] Back to Menu" {
configfile "${prefix}/grub.cfg"
}
2020-11-13 00:50:49 +01:00
else
echo "Cannot read ${isoconfdir}"
fi