diff options
-rw-r--r-- | templates/show/poweroff/node.def | 2 | ||||
-rw-r--r-- | templates/show/shutdown/node.def | 8 |
2 files changed, 2 insertions, 8 deletions
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 |