Only run for Limine installs

This commit is contained in:
Ryan Hughes
2025-11-07 15:09:34 -05:00
parent e4e7fae5ef
commit b9654a9372

View File

@@ -1,10 +1,12 @@
echo "Remove alternative limine.conf files"
if [ ! -f /boot/limine.conf ]; then
echo "Error: /boot/limine.conf does not exist. Do not reboot without resolving this issue!"
exit 1
fi
if omarchy-cmd-present limine; then
if [ ! -f /boot/limine.conf ]; then
echo "Error: /boot/limine.conf does not exist. Do not reboot without resolving this issue!"
exit 1
fi
[ -f /boot/EFI/limine/limine.conf ] && sudo rm -f /boot/EFI/limine/limine.conf
[ -f /boot/EFI/BOOT/limine.conf ] && sudo rm -f /boot/EFI/BOOT/limine.conf
[ -f /boot/limine/limine.conf ] && sudo rm -f /boot/limine/limine.conf
[ -f /boot/EFI/limine/limine.conf ] && sudo rm -f /boot/EFI/limine/limine.conf
[ -f /boot/EFI/BOOT/limine.conf ] && sudo rm -f /boot/EFI/BOOT/limine.conf
[ -f /boot/limine/limine.conf ] && sudo rm -f /boot/limine/limine.conf
fi