mirror of
https://gitlab.manjaro.org/applications/manjaro-architect
synced 2024-11-08 01:10:26 +00:00
add error check driver install and remove suprefluous
This commit is contained in:
parent
25d7bb6be9
commit
7ae12b4aa7
@ -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."
|
||||
|
@ -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
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user