Fix poweroff/reboot calls

This commit is contained in:
2Shirt 2018-12-20 15:25:39 -07:00
parent c6eb7cdfd6
commit eed8a1e40c
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -835,13 +835,9 @@ def menu_diags(state, args):
# Tubes is close to pipes right?
secret_screensaver('pipes')
elif selection == 'R':
print('(FAKE) reboot...')
sleep(1)
run_program(['systemctl', 'reboot'])
run_program(['/usr/local/bin/wk-power-command', 'reboot'])
elif selection == 'P':
print('(FAKE) poweroff...')
sleep(1)
run_program(['systemctl', 'poweroff'])
run_program(['/usr/local/bin/wk-power-command', 'poweroff'])
elif selection == 'Q':
break
elif selection == 'S':