This commit is contained in:
IrvingGao 2024-05-31 12:46:49 +08:00
parent 23ba0136e6
commit 45191faaba
1 changed files with 2 additions and 1 deletions

View File

@ -128,7 +128,8 @@ def check_wifi_connection():
sudo systemctl restart NetworkManager
'''
network_error_light()
subprocess.Popen('sudo systemctl restart NetworkManager', shell=True)
# subprocess.Popen('sudo systemctl restart NetworkManager', shell=True)
subprocess.run(['sudo', 'systemctl', 'restart', 'NetworkManager'], check=True)
time.sleep(5)
return False, None