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

14
archfi
View file

@ -1611,12 +1611,22 @@ while (( "$#" )); do
echo "archfi" echo "archfi"
echo "------" echo "------"
echo "-sf | --skip-font Skip setfont from 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" echo "-t | --test ghusername ghbranch Test language files"
exit 0 exit 0
;; ;;
-sf | --skip-font) skipfont=1;; -sf | --skip-font) skipfont=1;;
-t | --test) baseurl="https://raw.githubusercontent" -t | --test) baseurl="https://raw.githubusercontent"
baseurl="$baseurl.com/""$2/archfi/$3";; baseurl="$baseurl.com/""$2/archfi/$3";;
-efi0) efimode=0;;
-efi1)
eficomputer=1
efimode=1
;;
-efi2)
eficomputer=1
efimode=2
;;
--chroot) chroot=1 --chroot) chroot=1
command=$2 command=$2
args=$3;; args=$3;;
@ -1647,11 +1657,15 @@ else
pacman -S --needed arch-install-scripts wget libnewt pacman -S --needed arch-install-scripts wget libnewt
dmesg |grep efi: > /dev/null dmesg |grep efi: > /dev/null
if [ "$?" == "1" ]; then if [ "$?" == "1" ]; then
if [ "$eficomputer" != "1" ]; then
eficomputer=0 eficomputer=0
fi
else else
eficomputer=1 eficomputer=1
if [ "$efimode" != "" ]; then
efimode=1 efimode=1
fi fi
fi
loadstrings loadstrings
EDITOR=nano EDITOR=nano
mainmenu mainmenu