From 7ae12b4aa752f3fdf71192e9f265733eff2d09ae Mon Sep 17 00:00:00 2001 From: Bernhard Landauer Date: Fri, 10 Mar 2017 14:13:30 +0100 Subject: [PATCH] add error check driver install and remove suprefluous --- lib/util-desktop.sh | 1 - lib/util-menu.sh | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/util-desktop.sh b/lib/util-desktop.sh index f3b8160..391d168 100644 --- a/lib/util-desktop.sh +++ b/lib/util-desktop.sh @@ -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." diff --git a/lib/util-menu.sh b/lib/util-menu.sh index 9c4a8dd..557d621 100644 --- a/lib/util-menu.sh +++ b/lib/util-menu.sh @@ -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 ;;