From ce35b9830e538bce50b42272bb457201dfae102e Mon Sep 17 00:00:00 2001 From: Runar Borge Date: Fri, 17 Aug 2018 00:22:16 +0200 Subject: T689: Added support for specifying date on poweroff and reboot --- op-mode-definitions/poweroff.xml | 24 +++++++++++++++++------- op-mode-definitions/reboot.xml | 16 +++++++++++++--- 2 files changed, 30 insertions(+), 10 deletions(-) (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/poweroff.xml b/op-mode-definitions/poweroff.xml index 725d10225..bb2eedcb1 100644 --- a/op-mode-definitions/poweroff.xml +++ b/op-mode-definitions/poweroff.xml @@ -16,31 +16,41 @@ - Cancel a pending reboot + Cancel a pending poweroff sudo ${vyos_op_scripts_dir}/powerctrl.py --cancel - Reboot in X minutes + Poweroff in X minutes - Minutes + <Minutes> - sudo ${vyos_op_scripts_dir}/powerctrl.py --yes --poweroff '$3' + sudo ${vyos_op_scripts_dir}/powerctrl.py --yes --poweroff $3 $4 - Reboot at a specific time + Poweroff at a specific time HH:MM - sudo ${vyos_op_scripts_dir}/powerctrl.py --yes --poweroff '$3' - + sudo ${vyos_op_scripts_dir}/powerctrl.py --yes --poweroff $3 + + + + Poweroff at a specific date + + <DDMMYYYY> <DD/MM/YYYY> <DD.MM.YYYY> <DD:MM:YYYY> + + + sudo ${vyos_op_scripts_dir}/powerctrl.py --yes --poweroff $3 $5 + + diff --git a/op-mode-definitions/reboot.xml b/op-mode-definitions/reboot.xml index 214a39633..703304ff8 100644 --- a/op-mode-definitions/reboot.xml +++ b/op-mode-definitions/reboot.xml @@ -25,10 +25,10 @@ Reboot in X minutes - Minutes + <Minutes> - sudo ${vyos_op_scripts_dir}/powerctrl.py --yes --reboot $3 + sudo ${vyos_op_scripts_dir}/powerctrl.py --yes --reboot $3 $4 @@ -40,7 +40,17 @@ sudo ${vyos_op_scripts_dir}/powerctrl.py --yes --reboot $3 - + + + + Reboot at a specific date + + <DDMMYYYY> <DD/MM/YYYY> <DD.MM.YYYY> <DD:MM:YYYY> + + + sudo ${vyos_op_scripts_dir}/powerctrl.py --yes --reboot $3 $5 + + -- cgit v1.2.3