From 15dc850144375cf53e85d6b5a2e9cbbca3eec3ca Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 12 Mar 2009 10:13:44 -0700 Subject: Add show shutdown Bug 4217 Add show shutdown, try and determine time. --- templates/show/shutdown/node.def | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 templates/show/shutdown/node.def (limited to 'templates/show') diff --git a/templates/show/shutdown/node.def b/templates/show/shutdown/node.def new file mode 100644 index 0000000..ecc8c4b --- /dev/null +++ b/templates/show/shutdown/node.def @@ -0,0 +1,8 @@ +help: Show scheduled shutdown +run: if [ -f /var/run/shutdown.pid ] + then if [ -r /tmp/shutdown.at ] + then echo -n "Shutdown pending at"; cat /tmp/shutdown.at + else echo "Shutdown pending" + fi + else echo "No shutdown pending" + fi -- cgit v1.2.3