From 0c7bb65bb8c8cbad68ab0902ec01ca0a2541ade1 Mon Sep 17 00:00:00 2001 From: Runar Borge Date: Thu, 7 Jun 2018 23:23:16 +0200 Subject: T689 Convert reboot and poweroff commands to new syntax --- op-mode-definitions/poweroff.xml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 op-mode-definitions/poweroff.xml (limited to 'op-mode-definitions/poweroff.xml') diff --git a/op-mode-definitions/poweroff.xml b/op-mode-definitions/poweroff.xml new file mode 100644 index 000000000..07cea7927 --- /dev/null +++ b/op-mode-definitions/poweroff.xml @@ -0,0 +1,40 @@ + + + + + Poweroff the system + + /opt/vyatta/bin/sudo-users/vyatta-poweroff.pl --action poweroff + + + + Poweroff the system without confirmation + + /opt/vyatta/bin/sudo-users/vyatta-poweroff.pl --action poweroff --now + + + + + Cancel a pending poweroff + + /opt/vyatta/bin/sudo-users/vyatta-poweroff.pl --action poweroff_cancel + + + + + + Poweroff at a specific time + + HH:MM + MMDDYY + midnight + noon + + + /opt/vyatta/bin/sudo-users/vyatta-poweroff.pl --action poweroff_at --at_time '$3' + + + + + + -- cgit v1.2.3