Fix for generic_select() call.

This commit is contained in:
Anton Hvornum 2020-11-11 20:15:58 +00:00
parent 72fb912b6b
commit be2dd2b3cd
1 changed files with 2 additions and 2 deletions

View File

@ -188,9 +188,9 @@ while 1:
interfaces = archinstall.list_interfaces()
archinstall.storage['_guided']['network'] = None
nic = generic_select(interfaces, "Select one network interface to configure (leave blank to skip): ")
nic = archinstall.generic_select(interfaces, "Select one network interface to configure (leave blank to skip): ")
if nic:
mode = generic_select(['DHCP (auto detect)', 'IP (static)'], f"Select which mode to configure for {nic}: ")
mode = archinstall.generic_select(['DHCP (auto detect)', 'IP (static)'], f"Select which mode to configure for {nic}: ")
if mode == 'IP (static)':
while 1:
ip = input(f"Enter the IP and subnet for {nic} (example: 192.168.0.5/24): ").strip()