Fix poweroff/reboot calls
This commit is contained in:
parent
c6eb7cdfd6
commit
eed8a1e40c
1 changed files with 2 additions and 6 deletions
|
|
@ -835,13 +835,9 @@ def menu_diags(state, args):
|
||||||
# Tubes is close to pipes right?
|
# Tubes is close to pipes right?
|
||||||
secret_screensaver('pipes')
|
secret_screensaver('pipes')
|
||||||
elif selection == 'R':
|
elif selection == 'R':
|
||||||
print('(FAKE) reboot...')
|
run_program(['/usr/local/bin/wk-power-command', 'reboot'])
|
||||||
sleep(1)
|
|
||||||
run_program(['systemctl', 'reboot'])
|
|
||||||
elif selection == 'P':
|
elif selection == 'P':
|
||||||
print('(FAKE) poweroff...')
|
run_program(['/usr/local/bin/wk-power-command', 'poweroff'])
|
||||||
sleep(1)
|
|
||||||
run_program(['systemctl', 'poweroff'])
|
|
||||||
elif selection == 'Q':
|
elif selection == 'Q':
|
||||||
break
|
break
|
||||||
elif selection == 'S':
|
elif selection == 'S':
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue