Update linux-firmware install method

This commit is contained in:
MatMoul 2020-01-11 02:46:39 +01:00
parent bf31f4b350
commit 9d8f9aeeba

27
archfi
View file

@ -727,8 +727,7 @@ installmenu(){
options=()
options+=("${txtselectmirrorsbycountry}" "(${txtoptional})")
options+=("${txteditmirrorlist}" "(${txtoptional})")
options+=("${txtinstallarchlinux}" "pacstrap base kernel")
options+=("${txtinstallfirmware}" "(${txtoptional}) pacstrap linux-firmware")
options+=("${txtinstallarchlinux}" "pacstrap base kernel firmwares")
options+=("${txtconfigarchlinux}" "")
sel=$(whiptail --backtitle "${apptitle}" --title "${txtinstallmenu}" --menu "" --cancel-button "${txtunmount}" --default-item "${nextitem}" 0 0 0 \
"${options[@]}" \
@ -745,12 +744,8 @@ installmenu(){
;;
"${txtinstallarchlinux}")
if(installbase) then
nextitem="${txtinstallfirmware}"
fi
;;
"${txtinstallfirmware}")
installfirmware
nextitem="${txtconfigarchlinux}"
fi
;;
"${txtconfigarchlinux}")
archmenu
@ -798,18 +793,22 @@ installbase(){
else
return 1
fi
options=()
options+=("linux-firmware" "(${txtoptional})" on)
sel=$(whiptail --backtitle "${apptitle}" --title "Firmwares" --checklist "" 0 0 0 \
"${options[@]}" \
3>&1 1>&2 2>&3)
if [ ! "$?" = "0" ]; then
return 1
fi
for itm in $sel; do
pkgs="$pkgs $(echo $itm | sed 's/"//g')"
done
echo "pacstrap /mnt ${pkgs}"
pacstrap /mnt ${pkgs}
pressanykey
}
installfirmware(){
clear
echo "pacstrap /mnt linux-firmware"
pacstrap /mnt linux-firmware
pressanykey
}
unmountdevices(){
clear
echo "umount -R /mnt"