diff --git a/SafeShutdown.py b/SafeShutdown.py index 7d6393b..98276e0 100644 --- a/SafeShutdown.py +++ b/SafeShutdown.py @@ -16,11 +16,11 @@ #functions that handle button events def when_pressed(): led.blink(.2,.2) - os.system("sudo killall emulationstation && sleep 5s && sudo shutdown -h now") + os.system("sudo killall emulationstation ; sleep 5s ; sudo shutdown -h now") def when_released(): led.on() def reboot(): - os.system("sudo killall emulationstation && sleep 5s && sudo reboot") + os.system("sudo killall emulationstation ; sleep 5s ; sudo reboot") btn = Button(powerPin, hold_time=hold) rebootBtn = Button(resetPin)