summaryrefslogtreecommitdiff
path: root/scripts/yesno
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-10-14 11:45:17 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-10-27 17:11:30 -0500
commitfb100420fd6d54d5e86bf090f1123636cd2dc4e6 (patch)
tree5252950fb3d4ef445602b6aeb804040deae9aa82 /scripts/yesno
parent8babe163cc1bc84165cc19a6e02022522b3d3439 (diff)
downloadvyatta-op-fb100420fd6d54d5e86bf090f1123636cd2dc4e6.tar.gz
vyatta-op-fb100420fd6d54d5e86bf090f1123636cd2dc4e6.zip
Bugfix 7557: Move shutdown to poweroff, change confirmation from default in the affirmative to defualt in the negative.
(cherry picked from commit 54c32901389933b1830404f173b338f885add043)
Diffstat (limited to 'scripts/yesno')
-rwxr-xr-xscripts/yesno3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/yesno b/scripts/yesno
index 3e10e09..260a23c 100755
--- a/scripts/yesno
+++ b/scripts/yesno
@@ -4,8 +4,11 @@
default=
if [ "$1" = "-y" ]
then default='y'; shift
+elif [[ "$1" = "-n" ]]; then
+ default='n'; shift
fi
+
if [ $# -eq 0 ]
then prompt="yes or no: "
else prompt="$*"