diff options
Diffstat (limited to 'templates/poweroff/node.def')
-rw-r--r-- | templates/poweroff/node.def | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/poweroff/node.def b/templates/poweroff/node.def new file mode 100644 index 0000000..b3a41f1 --- /dev/null +++ b/templates/poweroff/node.def @@ -0,0 +1,9 @@ +help: Poweroff the system +run: if [ "$VYATTA_PROCESS_CLIENT" == "gui2_rest" ] + then + sudo /sbin/shutdown -h now + else + ${vyatta_bindir}/yesno -n "Proceed with poweroff? (Yes/No) [No] " \ + && sudo /sbin/shutdown -h now + fi + |