arch-maride-flavour/checks/uefi.check
2017-10-01 17:35:35 +02:00

17 lines
429 B
Bash
Executable File

#!/bin/sh
if [ "$bootloader" == "BIOS" ]; then
echo "~> Not an EFI host, not checking for EFI."
amf_return=0
else
ls /sys/firmware/efi/efivars 2>/tmp/arch-maride-flavour_checks_uefi_error.log 1>/tmp/arch-maride-flavour_checks_uefi_out.log
return=$?
if [ "$return" -eq 0 ]; then
amf_return=0
else
echo "~> This doesn't seem to be an UEFI boot. Please boot UEFI."
amf_return=1
fi
fi