Improved Windows shutdown command.
This commit is contained in:
parent
501c5f8baa
commit
53f90aa2a4
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue