diff options
Diffstat (limited to 'templates/poweroff/at')
-rw-r--r-- | templates/poweroff/at/node.def | 1 | ||||
-rw-r--r-- | templates/poweroff/at/node.tag/node.def | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/templates/poweroff/at/node.def b/templates/poweroff/at/node.def new file mode 100644 index 0000000..537bfff --- /dev/null +++ b/templates/poweroff/at/node.def @@ -0,0 +1 @@ +help: Poweroff at a specific time diff --git a/templates/poweroff/at/node.tag/node.def b/templates/poweroff/at/node.tag/node.def new file mode 100644 index 0000000..ccc3b5b --- /dev/null +++ b/templates/poweroff/at/node.tag/node.def @@ -0,0 +1,6 @@ +help: Poweroff the system at a future time +allowed: echo -n '<HH:MM>' '<MMDDYY>' '+MM' +run: if /opt/vyatta/bin/vyatta-gettime.pl $3 >/tmp/shutdown.at + then (sudo /sbin/shutdown -h $3 & + disown %?sudo ) >/dev/null 2>&1 + fi |