Fixing UEFI check if-loop
This commit is contained in:
parent
cb675e878e
commit
b4281e8e74
@ -1,10 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if [ "$bootloader" == "EFI" ]; then
|
if [ "$bootloader" == "BIOS" ]; then
|
||||||
echo "~> Not an EFI host, not checking for EFI."
|
echo "~> Not an EFI host, not checking for EFI."
|
||||||
amf_return=0
|
amf_return=0
|
||||||
fi
|
else
|
||||||
|
|
||||||
ls /sys/firmware/efi/efivars 2>/tmp/arch-maride-flavour_checks_uefi_error.log 1>/tmp/arch-maride-flavour_checks_uefi_out.log
|
ls /sys/firmware/efi/efivars 2>/tmp/arch-maride-flavour_checks_uefi_error.log 1>/tmp/arch-maride-flavour_checks_uefi_out.log
|
||||||
return=$?
|
return=$?
|
||||||
|
|
||||||
@ -14,3 +13,4 @@ else
|
|||||||
echo "~> This doesn't seem to be an UEFI boot. Please boot UEFI."
|
echo "~> This doesn't seem to be an UEFI boot. Please boot UEFI."
|
||||||
amf_return=1
|
amf_return=1
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user