Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authoradvaithm <advaith.madhukar@gmail.com>2021-04-04 09:08:17 +0530
committeradvaithm <advaith.madhukar@gmail.com>2021-04-04 09:08:17 +0530
commitf42d52624e19478bea0a57b03fb46119375714f2 (patch)
treee76ee0d46c791bae4641349eddfbab4893ebe379 /archinstall
parent454d712d088091af4818c2cd8638e2152bdd4d54 (diff)
moved around the if block
Diffstat (limited to 'archinstall')
-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 c05a09ee..83e59e90 100644
--- a/archinstall/lib/user_interaction.py
+++ b/archinstall/lib/user_interaction.py
@@ -98,6 +98,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:
@@ -121,7 +123,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