From da097b35d69cd4d14002d69421e229c13d507cec Mon Sep 17 00:00:00 2001 From: IrvingGao <1729854488@qq.com> Date: Fri, 31 May 2024 12:37:40 +0800 Subject: [PATCH] update --- wifi_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wifi_manager.py b/wifi_manager.py index c2a8938..19f38b7 100644 --- a/wifi_manager.py +++ b/wifi_manager.py @@ -128,7 +128,8 @@ def check_wifi_connection(): sudo systemctl restart NetworkManager ''' network_error_light() - subprocess.Popen('sudo reboot', shell=True) + subprocess.Popen('sudo systemctl restart NetworkManager', shell=True) + time.sleep(1) return False, None def scan_wifi():