diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-02-12 19:54:03 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-02-17 15:46:41 -0800 |
commit | 03fdd12651ac3d6c370e203d32d785253a7bd6c2 (patch) | |
tree | 7910e6ced2f26d8880f4047982feb56749dbcd4f /templates/shutdown | |
parent | f9399f6cd3aeff3478d47183932b771aa4f19d5e (diff) | |
download | vyatta-op-03fdd12651ac3d6c370e203d32d785253a7bd6c2.tar.gz vyatta-op-03fdd12651ac3d6c370e203d32d785253a7bd6c2.zip |
Prompt before immediate shutdown
Add yesno helper script and prompt before shutdown
Diffstat (limited to 'templates/shutdown')
-rw-r--r-- | templates/shutdown/node.def | 3 |
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 |