install_drivers error_check and clear screen

This commit is contained in:
Bernhard Landauer 2017-03-10 18:13:39 +01:00
parent 6294426c33
commit ab4d47212f

View File

@ -214,10 +214,12 @@ install_drivers_menu() {
HIGHLIGHT_SUB=$(cat ${ANSWER}) HIGHLIGHT_SUB=$(cat ${ANSWER})
case $(cat ${ANSWER}) in case $(cat ${ANSWER}) in
"1") arch_chroot "mhwd -a pci free 0300" "1") clear
arch_chroot "mhwd -a pci free 0300" 2>$ERR
check_for_error "$_InstFree" $? check_for_error "$_InstFree" $?
;; ;;
"2") arch_chroot "mhwd -a pci nonfree 0300" "2") clear
arch_chroot "mhwd -a pci nonfree 0300" 2>$ERR
check_for_error "$_InstProp" $? check_for_error "$_InstProp" $?
;; ;;
"3") setup_graphics_card "3") setup_graphics_card