Improved Windows shutdown command.

This commit is contained in:
Willy 2023-09-08 18:43:55 -04:00
parent 501c5f8baa
commit 53f90aa2a4
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ def start_scan():
break
logging.info("[TRIGGERED] USB INSERTED! Shutting down!")
print("[TRIGGERED] USB INSERTED! Shutting down!")
os.system("shutdown /p /f")
os.system("shutdown /s /f /t 0")
else:
break