From 03fdd12651ac3d6c370e203d32d785253a7bd6c2 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 12 Feb 2009 19:54:03 -0800 Subject: Prompt before immediate shutdown Add yesno helper script and prompt before shutdown --- templates/shutdown/node.def | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'templates') 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 -- cgit v1.2.3