Update hw_diags.py systemctl command syntax

* Now it matches the wk-power-command style
This commit is contained in:
2Shirt 2018-09-15 17:50:54 -06:00
parent 1e21c04a3e
commit 35fd50771c
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -224,9 +224,9 @@ def menu_diags(*args):
'pipes -t 0 -t 1 -t 2 -t 3 -p 5 -R -r 4000'.split(),
check=False, pipe=False)
elif selection == 'R':
run_program(['reboot'])
run_program(['systemctl', 'reboot'])
elif selection == 'S':
run_program(['poweroff'])
run_program(['systemctl', 'poweroff'])
elif selection == 'Q':
break