Skip to content

Commit

Permalink
Merge pull request #71 from BlackArch/change_efi_checks
Browse files Browse the repository at this point in the history
Update efivars check
  • Loading branch information
noptrix authored Mar 20, 2023
2 parents eaf71f9 + 5514bb6 commit 53bc0d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions blackarch-install
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


# blackarch-installer version
VERSION='1.2.22'
VERSION='1.2.23'

# path to blackarch-installer
BI_PATH='/usr/share/blackarch-installer'
Expand Down Expand Up @@ -254,7 +254,8 @@ banner()
# check boot mode
check_boot_mode()
{
if [ "$(efivar --list 2> /dev/null)" ]
efivars=$(ls /sys/firmware/efi/efivars > /dev/null 2>&1; echo $?)
if [ "$efivars" -eq "0" ]
then
BOOT_MODE="uefi"
fi
Expand Down

0 comments on commit 53bc0d8

Please sign in to comment.