Fix command that applies new wpa_supplicant
This commit is contained in:
parent
4cbb038d2d
commit
20d681cc29
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ network={
|
||||||
""" % (ssid, psk)
|
""" % (ssid, psk)
|
||||||
with open(WPA_SUPPLICANT_LOCATION, 'w') as file:
|
with open(WPA_SUPPLICANT_LOCATION, 'w') as file:
|
||||||
file.write(wpa_supplicant_content)
|
file.write(wpa_supplicant_content)
|
||||||
os.system('sudo ifdown wlan0 --force; sudo ifup wlan0; wpa_supplicant -i wlan0 -c %s' % WPA_SUPPLICANT_LOCATION)
|
os.system('sudo ifdown --force wlan0; sudo ifup wlan0')
|
||||||
|
|
||||||
# Get new IP
|
# Get new IP
|
||||||
new_ip = subprocess.check_output(
|
new_ip = subprocess.check_output(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue