Commit e0e276f3 authored by Bernhard Landauer's avatar Bernhard Landauer

fix duplicate driver listing and adjust menu

parent 7d94cc6d
......@@ -12,7 +12,7 @@
setup_graphics_card() {
DIALOG " $_GCDetBody " --radiolist "\n$_UseSpaceBar\n " 0 0 12 \
$(mhwd -l | awk '/video-/{print $1}' |awk '$0=$0" - off"') 2> /tmp/.driver || return 0
$(mhwd -l | awk '/video-/{print $1}' | awk '$0=$0" - off"' | uniq) 2>/tmp/.driver || return 0
if [[ $(cat /tmp/.driver) != "" ]]; then
clear
......
......@@ -176,7 +176,7 @@ install_drivers_menu() {
HIGHLIGHT_SUB=1
declare -i loopmenu=1
while ((loopmenu)); do
DIALOG " $_InstDrvTitle " --default-item ${HIGHLIGHT_SUB} --menu "\n$_InstDrvBody\n " 0 0 3 \
DIALOG " $_InstDrvTitle " --default-item ${HIGHLIGHT_SUB} --menu "\n " 0 0 3 \
"1" "$_InstGrMenuTitle|>" \
"2" "$_InstNWDrv" \
"3" "$_Back" 2>${ANSWER}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment