remove old NWs from wpa_supplicant

This commit is contained in:
Your Name 2021-12-15 09:05:53 +00:00
parent de3ed3e01b
commit 8002beaff9

View File

@ -278,7 +278,10 @@ def edit_wpa_sup(country, ssid, pwd):
current_wpa.close()
#remove this line to append to end instead of overwriting all networks
wpa_lines = wpa_lines[0:4]
print(wpa_lines)
wpa_lines.append('\n')
wpa_lines.append('network={\n')
wpa_lines.append('\tssid="{}"\n'.format(ssid))