From ab665a124c733ca442e47e94edc689774fa8ec1b Mon Sep 17 00:00:00 2001 From: Alex Harpin Date: Sat, 24 Jan 2015 20:43:23 +0000 Subject: vyatta-op: replace 'show shutdown' with 'show poweroff' and use script Rename 'show shutdown' to 'show poweroff' so it is the same as the configuration options, and set the command to use the script to show the scheduled poweroff time. Bug #461 http://bugzilla.vyos.net/show_bug.cgi?id=461 --- templates/show/poweroff/node.def | 2 ++ templates/show/shutdown/node.def | 8 -------- 2 files changed, 2 insertions(+), 8 deletions(-) create mode 100644 templates/show/poweroff/node.def delete mode 100644 templates/show/shutdown/node.def diff --git a/templates/show/poweroff/node.def b/templates/show/poweroff/node.def new file mode 100644 index 0000000..a65f4e6 --- /dev/null +++ b/templates/show/poweroff/node.def @@ -0,0 +1,2 @@ +help: Show scheduled poweroff +run: sudo /opt/vyatta/bin/sudo-users/vyatta-poweroff.pl --action show_poweroff diff --git a/templates/show/shutdown/node.def b/templates/show/shutdown/node.def deleted file mode 100644 index 52bd3a4..0000000 --- a/templates/show/shutdown/node.def +++ /dev/null @@ -1,8 +0,0 @@ -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