From 15dc850144375cf53e85d6b5a2e9cbbca3eec3ca Mon Sep 17 00:00:00 2001 From: Stephen Hemminger <stephen.hemminger@vyatta.com> Date: Thu, 12 Mar 2009 10:13:44 -0700 Subject: Add show shutdown Bug 4217 Add show shutdown, try and determine time. --- templates/shutdown/at/node.tag/node.def | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'templates/shutdown') 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 -- cgit v1.2.3