Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/user_interaction.py
diff options
context:
space:
mode:
authoradvaithm <advaith.madhukar@gmail.com>2021-04-04 09:08:17 +0530
committerDylan Taylor <dylan@dylanmtaylor.com>2021-04-09 11:50:31 -0400
commit46c43b25a6e1dcf6a633744c06738f8efd542ed8 (patch)
tree58c063fc1037fca4b0d3d81b3dae5d21d226dd99 /archinstall/lib/user_interaction.py
parent75a36e2fdc96e0e4e0a758f360f00456b49d37a8 (diff)
moved around the if block
Diffstat (limited to 'archinstall/lib/user_interaction.py')
-rw-r--r--archinstall/lib/user_interaction.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/archinstall/lib/user_interaction.py b/archinstall/lib/user_interaction.py
index 62b0a3eb..c140b6fa 100644
--- a/archinstall/lib/user_interaction.py
+++ b/archinstall/lib/user_interaction.py
@@ -156,6 +156,8 @@ def ask_to_configure_network():
nic = generic_select(interfaces.values(), "Select one network interface to configure (leave blank to skip): ")
if nic and nic != 'Copy ISO network configuration to installation':
+ if nic == 'Use NetworkManager to control and manage you internet conntetion':
+ return {'nic': nic,'NetworkManager':True}
mode = generic_select(['DHCP (auto detect)', 'IP (static)'], f"Select which mode to configure for {nic}: ")
if mode == 'IP (static)':
while 1:
@@ -178,7 +180,7 @@ def ask_to_configure_network():
return {'nic': nic, 'dhcp': False, 'ip': ip, 'gateway' : gateway, 'dns' : dns}
else:
- return {'nic': nic,'NetworkManager':True}
+ return {'nic': nic}
elif nic:
return nic