From 519192f0d82aa920b9870547b92d8f1a22837158 Mon Sep 17 00:00:00 2001 From: Runar Borge Date: Thu, 16 Aug 2018 20:00:43 +0200 Subject: T689: Rewritten poweroff/reboot script to use systemd-shutdownd service --- op-mode-definitions/poweroff.xml | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) (limited to 'op-mode-definitions/poweroff.xml') diff --git a/op-mode-definitions/poweroff.xml b/op-mode-definitions/poweroff.xml index 07cea7927..e6cab0222 100644 --- a/op-mode-definitions/poweroff.xml +++ b/op-mode-definitions/poweroff.xml @@ -2,37 +2,45 @@ - Poweroff the system + Shutdown the system - /opt/vyatta/bin/sudo-users/vyatta-poweroff.pl --action poweroff + sudo ${vyos_op_scripts_dir}/powerctrl.py --poweroff now + - Poweroff the system without confirmation + Shutdown the system imidiently - /opt/vyatta/bin/sudo-users/vyatta-poweroff.pl --action poweroff --now + sudo ${vyos_op_scripts_dir}/powerctrl.py --yes --poweroff now - + - Cancel a pending poweroff + Cancel a pending reboot - /opt/vyatta/bin/sudo-users/vyatta-poweroff.pl --action poweroff_cancel + sudo ${vyos_op_scripts_dir}/powerctrl.py --cancel + + + Reboot in X minutes + + Minutes + + + sudo ${vyos_op_scripts_dir}/powerctrl.py --yes --poweroff '$3' + + - Poweroff at a specific time + Reboot at a specific time HH:MM - MMDDYY - midnight - noon - /opt/vyatta/bin/sudo-users/vyatta-poweroff.pl --action poweroff_at --at_time '$3' - + sudo ${vyos_op_scripts_dir}/powerctrl.py --yes --poweroff '$3' + -- cgit v1.2.3