Add -efi args to enforce efimode in archfi

This commit is contained in:
MatMoul 2018-12-31 20:16:34 +01:00
parent a53f27da98
commit 3267b72853

22
archfi
View file

@ -1610,13 +1610,23 @@ while (( "$#" )); do
--help)
echo "archfi"
echo "------"
echo "-sf | --skip-font Skip setfont from language files"
echo "-t | --test ghusername ghbranch Test language files"
echo "-sf | --skip-font Skip setfont from language files"
echo "-efiX -efi0 : disable EFI, -efi1 efi inst, -efi2 efi hybrid inst"
echo "-t | --test ghusername ghbranch Test language files"
exit 0
;;
-sf | --skip-font) skipfont=1;;
-t | --test) baseurl="https://raw.githubusercontent"
baseurl="$baseurl.com/""$2/archfi/$3";;
-efi0) efimode=0;;
-efi1)
eficomputer=1
efimode=1
;;
-efi2)
eficomputer=1
efimode=2
;;
--chroot) chroot=1
command=$2
args=$3;;
@ -1647,10 +1657,14 @@ else
pacman -S --needed arch-install-scripts wget libnewt
dmesg |grep efi: > /dev/null
if [ "$?" == "1" ]; then
eficomputer=0
if [ "$eficomputer" != "1" ]; then
eficomputer=0
fi
else
eficomputer=1
efimode=1
if [ "$efimode" != "" ]; then
efimode=1
fi
fi
loadstrings
EDITOR=nano