add error check driver install and remove suprefluous

This commit is contained in:
Bernhard Landauer 2017-03-10 14:13:30 +01:00
parent 25d7bb6be9
commit 7ae12b4aa7
2 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,6 @@ setup_graphics_card() {
elif [[ $(cat /tmp/.driver) == "video-nouveau" ]]; then
sed -i 's/MODULES=""/MODULES="nouveau"/' ${MOUNTPOINT}/etc/mkinitcpio.conf
fi
check_for_error "$FUNCNAME $(cat /tmp/.driver)" "$?"
else
DIALOG " $_ErrTitle " --msgbox "\n\n$_WarnInstGr\n" 0 0
check_for_error "No video-driver selected."

View File

@ -212,8 +212,10 @@ install_drivers_menu() {
case $(cat ${ANSWER}) in
"1") arch_chroot "mhwd -a pci free 0300"
check_for_error "$_InstFree" $?
;;
"2") arch_chroot "mhwd -a pci nonfree 0300"
check_for_error "$_InstProp" $?
;;
"3") setup_graphics_card
;;