mirror of
https://github.com/dekuNukem/USB4VC.git
synced 2025-10-31 11:26:46 -07:00
fixed wifi info update
This commit is contained in:
@@ -91,10 +91,11 @@ network={{
|
|||||||
}}
|
}}
|
||||||
"""
|
"""
|
||||||
to_write = config_str
|
to_write = config_str
|
||||||
if len(wifi_dict['wifi_password']) > 0:
|
if len(wifi_dict['wifi_password']) == 0:
|
||||||
to_write = config_str_unsecured
|
to_write = config_str_unsecured
|
||||||
with open(config_file_path, 'w') as wifi_config_file:
|
with open(config_file_path, 'w') as wifi_config_file:
|
||||||
wifi_config_file.write(to_write)
|
wifi_config_file.write(to_write)
|
||||||
|
os.system("wpa_cli -i wlan0 reconfigure")
|
||||||
|
|
||||||
check_rpi_model()
|
check_rpi_model()
|
||||||
|
|
||||||
@@ -119,4 +120,4 @@ while 1:
|
|||||||
subprocess.call('echo 1 > /sys/module/bluetooth/parameters/disable_ertm')
|
subprocess.call('echo 1 > /sys/module/bluetooth/parameters/disable_ertm')
|
||||||
print("DONE")
|
print("DONE")
|
||||||
except Exception:
|
except Exception:
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user