summaryrefslogtreecommitdiff
path: root/scripts
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-14 11:45:17 -0500
commit54c32901389933b1830404f173b338f885add043 (patch)
tree117b8f2a78cf7536ea27d1b279059d967b87ae0d /scripts
parentc7bdd8fc2da81b3064d9136f4ebbe2ecd382ce27 (diff)
downloadvyatta-op-54c32901389933b1830404f173b338f885add043.tar.gz
vyatta-op-54c32901389933b1830404f173b338f885add043.zip
Bugfix 7557: Move shutdown to poweroff, change confirmation from default in the affirmative to defualt in the negative.
Diffstat (limited to 'scripts')
-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="$*"