diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-10-14 11:45:17 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-10-14 11:45:17 -0500 |
commit | 54c32901389933b1830404f173b338f885add043 (patch) | |
tree | 117b8f2a78cf7536ea27d1b279059d967b87ae0d /scripts | |
parent | c7bdd8fc2da81b3064d9136f4ebbe2ecd382ce27 (diff) | |
download | vyatta-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-x | scripts/yesno | 3 |
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="$*" |