Update server.py
This commit is contained in:
parent
ae9ee1b751
commit
53717b095e
@ -282,6 +282,13 @@ def edit_wpa_sup(country, ssid, pwd):
|
|||||||
wpa_lines = wpa_lines[0:3]
|
wpa_lines = wpa_lines[0:3]
|
||||||
print(wpa_lines)
|
print(wpa_lines)
|
||||||
|
|
||||||
|
# create new file from scratch
|
||||||
|
wpa_lines = []
|
||||||
|
wpa_lines.append('ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev')
|
||||||
|
wpa_lines.append('update_config=1')
|
||||||
|
wpa_lines.append('country={}\n'.format(country)')
|
||||||
|
|
||||||
|
|
||||||
wpa_lines.append('\n')
|
wpa_lines.append('\n')
|
||||||
wpa_lines.append('network={\n')
|
wpa_lines.append('network={\n')
|
||||||
wpa_lines.append('\tssid="{}"\n'.format(ssid))
|
wpa_lines.append('\tssid="{}"\n'.format(ssid))
|
||||||
|
Loading…
Reference in New Issue
Block a user