Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-11-11 20:17:48 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-11-11 20:17:48 +0000
commitabfeeb8dd0cadadbe38310e96a61e31088652d82 (patch)
treef4aaf4c1cef6a92100f71b64947d721ce1766931
parentbe2dd2b3cdaa54421ddb71093b604ad39d702afa (diff)
Asking user for interface-names rather than MAC address. Should probably print the current IP if any, which would make it easier to identify
-rw-r--r--examples/guided.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 51ebeeef..4edc593e 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -185,10 +185,10 @@ while 1:
# Optionally configure one network interface.
while 1:
- interfaces = archinstall.list_interfaces()
+ interfaces = archinstall.list_interfaces() # {MAC: Ifname}
archinstall.storage['_guided']['network'] = None
- nic = archinstall.generic_select(interfaces, "Select one network interface to configure (leave blank to skip): ")
+ nic = archinstall.generic_select(interfaces.values(), "Select one network interface to configure (leave blank to skip): ")
if nic:
mode = archinstall.generic_select(['DHCP (auto detect)', 'IP (static)'], f"Select which mode to configure for {nic}: ")
if mode == 'IP (static)':