summaryrefslogtreecommitdiff
path: root/templates/reboot
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2008-07-26 13:24:15 -0700
committerStig Thormodsrud <stig@vyatta.com>2008-07-26 13:24:15 -0700
commit61e47dd5b52a0ee6b4adbcaff833388578c4f71e (patch)
tree59a7c0e5d6dd37278223da9932e9421188c69974 /templates/reboot
parent0cea6d439356b0185d6cde838ac01fad1cf18cf0 (diff)
downloadvyatta-op-61e47dd5b52a0ee6b4adbcaff833388578c4f71e.tar.gz
vyatta-op-61e47dd5b52a0ee6b4adbcaff833388578c4f71e.zip
Enable "reload at|cancel".
Diffstat (limited to 'templates/reboot')
-rw-r--r--templates/reboot/at/.at/node.def (renamed from templates/reboot/.at/node.def)0
-rw-r--r--templates/reboot/at/.at/node.tag/node.def (renamed from templates/reboot/.at/node.tag/node.def)0
-rw-r--r--templates/reboot/at/node.def1
-rw-r--r--templates/reboot/at/node.tag/node.def3
-rw-r--r--templates/reboot/cancel/.cancel/node.def (renamed from templates/reboot/.cancel/node.def)0
-rw-r--r--templates/reboot/cancel/node.def2
6 files changed, 6 insertions, 0 deletions
diff --git a/templates/reboot/.at/node.def b/templates/reboot/at/.at/node.def
index 9944ff7..9944ff7 100644
--- a/templates/reboot/.at/node.def
+++ b/templates/reboot/at/.at/node.def
diff --git a/templates/reboot/.at/node.tag/node.def b/templates/reboot/at/.at/node.tag/node.def
index 62f39f9..62f39f9 100644
--- a/templates/reboot/.at/node.tag/node.def
+++ b/templates/reboot/at/.at/node.tag/node.def
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"
diff --git a/templates/reboot/.cancel/node.def b/templates/reboot/cancel/.cancel/node.def
index 110f595..110f595 100644
--- a/templates/reboot/.cancel/node.def
+++ b/templates/reboot/cancel/.cancel/node.def
diff --git a/templates/reboot/cancel/node.def b/templates/reboot/cancel/node.def
new file mode 100644
index 0000000..110f595
--- /dev/null
+++ b/templates/reboot/cancel/node.def
@@ -0,0 +1,2 @@
+help: Cancel a pending reboot
+run: sudo /opt/vyatta/bin/sudo-users/vyatta-reboot.pl --action reboot_cancel