remove old NWs from wpa_supplicant
This commit is contained in:
parent
de3ed3e01b
commit
8002beaff9
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user