diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-03-12 10:13:44 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-03-12 10:16:17 -0700 |
commit | 15dc850144375cf53e85d6b5a2e9cbbca3eec3ca (patch) | |
tree | 10fd217658749dbf6c80b5d07e50e50cd168c037 /templates/shutdown | |
parent | 0f26d05ff7f1b49d01449774b0add799024bde7e (diff) | |
download | vyatta-op-15dc850144375cf53e85d6b5a2e9cbbca3eec3ca.tar.gz vyatta-op-15dc850144375cf53e85d6b5a2e9cbbca3eec3ca.zip |
Add show shutdown
Bug 4217
Add show shutdown, try and determine time.
Diffstat (limited to 'templates/shutdown')
-rw-r--r-- | templates/shutdown/at/node.tag/node.def | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/shutdown/at/node.tag/node.def b/templates/shutdown/at/node.tag/node.def index 13cbaa1..94cd332 100644 --- a/templates/shutdown/at/node.tag/node.def +++ b/templates/shutdown/at/node.tag/node.def @@ -1,3 +1,5 @@ help: Shutdown the system at a future time allowed: echo -n '<HH:MM>' '<MMDDYY>' '+MM' -run: sudo /sbin/shutdown -h $3 & +run: if /opt/vyatta/bin/vyatta-gettime.pl $3 >/tmp/shutdown.at + then sudo /sbin/shutdown -h $3 & + fi |