# extra systems
-if [[ -f /boot/memtest+ ]];then
+if [[ -f memtest+ ]];then
cat >> $DEST << EOF
/Memtest+
protocol:linux
-path:boot():/boot/memtest+
+path:boot():/memtest+
+
+EOF
+fi
+
+if [[ -d sys/firmware/efi ]];then
+ echo This is a UEFI system
+
+# check for Windows
+ if WIN=`blkid | grep SYSTEM_DRV`; then
+ WB=${WIN%:*}
+ echo Windows installation found at $WB
+ cat >> $DEST << EOF
+/Windows
+ protocol: efi_chainload
+ image_path: hd(0,1):/bootmgfw.efi
+EOF
+ fi
+
+
+cat << EOF
+Finally, to create an entry in the UEFI Firmware,
+ use the following command,
+ changing /dev/... as appropriate:
+
+efibootmgr --create\
+ --disk /dev/sda...\
+ --disk /dev/nvme...\
+ --part 1\
+ --label "SMGL Linux with Limine"\
+ --loader '/limine/BOOTX64.EFI'
EOF
+else # non UEFI
+ echo this is not a UEFI system
+# check for Windows
+ if WIN=`blkid | grep SYSTEM_DRV`; then
+ WB=${WIN%:*}
+ echo Windows installation found at $WB
+ cat >> $DEST << EOF
+/Windows
+ protocol: bios_chainload
+ image_path: hd(0,1):/bootmgfw
+EOF
+ fi
fi
+cat << EOF
+Check the generated $DEST carefully, especially for Windows
+EOF
diff --git a/disk/limine/smgl-splash.png b/disk/limine/smgl-splash.png
new file mode 100755
index 0000000..3cf508b
Binary files /dev/null and b/disk/limine/smgl-splash.png differ
[[SM-Commit] ] GIT changes to master grimoire by Treeve Jelbert (bea70bbac3f093fa6171053c7f5eca70338a3db2),
Treeve Jelbert, 02/16/2025