From e982b78f24d1dca3d2bc92a39b8e9fcf35b39a37 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 9 Jan 2021 14:31:48 +0100 Subject: xml: op-mode: add preprocessor support as known from configuration mode --- op-mode-definitions/reboot.xml.in | 52 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 op-mode-definitions/reboot.xml.in (limited to 'op-mode-definitions/reboot.xml.in') diff --git a/op-mode-definitions/reboot.xml.in b/op-mode-definitions/reboot.xml.in new file mode 100644 index 000000000..2c8daec5d --- /dev/null +++ b/op-mode-definitions/reboot.xml.in @@ -0,0 +1,52 @@ + + + + + Reboot the system + + sudo ${vyos_op_scripts_dir}/powerctrl.py --reboot + + + + Reboot the system without confirmation + + sudo ${vyos_op_scripts_dir}/powerctrl.py --yes --reboot + + + + Cancel a pending reboot + + sudo ${vyos_op_scripts_dir}/powerctrl.py --cancel + + + + Reboot in X minutes + + <Minutes> + + + sudo ${vyos_op_scripts_dir}/powerctrl.py --yes --reboot $3 $4 + + + + Reboot at a specific time + + <HH:MM> + + + 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