summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2009-02-12 19:54:03 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-02-17 15:46:41 -0800
commit03fdd12651ac3d6c370e203d32d785253a7bd6c2 (patch)
tree7910e6ced2f26d8880f4047982feb56749dbcd4f /templates
parentf9399f6cd3aeff3478d47183932b771aa4f19d5e (diff)
downloadvyatta-op-03fdd12651ac3d6c370e203d32d785253a7bd6c2.tar.gz
vyatta-op-03fdd12651ac3d6c370e203d32d785253a7bd6c2.zip
Prompt before immediate shutdown
Add yesno helper script and prompt before shutdown
Diffstat (limited to 'templates')
-rw-r--r--templates/shutdown/node.def3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/shutdown/node.def b/templates/shutdown/node.def
index be56a0c..388dd33 100644
--- a/templates/shutdown/node.def
+++ b/templates/shutdown/node.def
@@ -1,2 +1,3 @@
help: Shutdown the system
-run: sudo /sbin/shutdown -h now
+run: ${vyatta_bindir}/yesno "Proceed with shutdown? [confirm] " \
+ && sudo /sbin/shutdown -h now