summaryrefslogtreecommitdiff
path: root/templates/reboot/.at
diff options
context:
space:
mode:
Diffstat (limited to 'templates/reboot/.at')
-rw-r--r--templates/reboot/.at/node.def1
-rw-r--r--templates/reboot/.at/node.tag/node.def3
2 files changed, 4 insertions, 0 deletions
diff --git a/templates/reboot/.at/node.def b/templates/reboot/.at/node.def
new file mode 100644
index 0000000..9944ff7
--- /dev/null
+++ b/templates/reboot/.at/node.def
@@ -0,0 +1 @@
+help: Reboot at a specific time
diff --git a/templates/reboot/.at/node.tag/node.def b/templates/reboot/.at/node.tag/node.def
new file mode 100644
index 0000000..62f39f9
--- /dev/null
+++ b/templates/reboot/.at/node.tag/node.def
@@ -0,0 +1,3 @@
+help: Reboot the system at a future time
+allowed: echo -n '<HH:MM>' '<MMDDYY>' '<midnight>' '<noon>'
+run: sudo /opt/vyatta/bin/sudo-users/vyatta-reboot.pl --action reboot_at --at_time "$3"