Add default graphics card driver option
This commit is contained in:
parent
efadd4a426
commit
493814d8bd
|
|
@ -673,6 +673,7 @@ def select_driver(options=AVAILABLE_GFX_DRIVERS):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
drivers = sorted(list(options))
|
drivers = sorted(list(options))
|
||||||
|
default_option = options["All open-source (default)"]
|
||||||
|
|
||||||
if drivers:
|
if drivers:
|
||||||
lspci = sys_command(f'/usr/bin/lspci')
|
lspci = sys_command(f'/usr/bin/lspci')
|
||||||
|
|
@ -683,7 +684,11 @@ def select_driver(options=AVAILABLE_GFX_DRIVERS):
|
||||||
elif b'amd' in line.lower():
|
elif b'amd' in line.lower():
|
||||||
print(' ** AMD card detected, suggested driver: AMD / ATI **')
|
print(' ** AMD card detected, suggested driver: AMD / ATI **')
|
||||||
|
|
||||||
initial_option = generic_select(drivers, input_text="Select your graphics card driver: ", allow_empty_input=False)
|
initial_option = generic_select(drivers, input_text="Select your graphics card driver: ")
|
||||||
|
|
||||||
|
if not initial_option:
|
||||||
|
return default_option
|
||||||
|
|
||||||
selected_driver = options[initial_option]
|
selected_driver = options[initial_option]
|
||||||
|
|
||||||
if type(selected_driver) == dict:
|
if type(selected_driver) == dict:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue