From eed8a1e40c48b205e40c422a32cc608a1934b080 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Thu, 20 Dec 2018 15:25:39 -0700 Subject: [PATCH] Fix poweroff/reboot calls --- .bin/Scripts/functions/hw_diags.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.bin/Scripts/functions/hw_diags.py b/.bin/Scripts/functions/hw_diags.py index 9cef1d33..9f10f997 100644 --- a/.bin/Scripts/functions/hw_diags.py +++ b/.bin/Scripts/functions/hw_diags.py @@ -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':