summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-10-17 18:56:38 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-10-27 17:11:31 -0500
commit756c4a467fae764430fa70f89c15d405c5943157 (patch)
treeb5411ebbf3884133c293114923732338a3b685dc /scripts
parentfb100420fd6d54d5e86bf090f1123636cd2dc4e6 (diff)
downloadvyatta-op-756c4a467fae764430fa70f89c15d405c5943157.tar.gz
vyatta-op-756c4a467fae764430fa70f89c15d405c5943157.zip
Make the reboot syntax the same as the poweroff syntax; require the affirmative answer instead of defaulting to it
(cherry picked from commit ccf2a40b2d30860618c45d6bd8a73eed8638fdd4)
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vyatta-reboot.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vyatta-reboot.pl b/scripts/vyatta-reboot.pl
index eaef885..f738986 100755
--- a/scripts/vyatta-reboot.pl
+++ b/scripts/vyatta-reboot.pl
@@ -116,7 +116,7 @@ if ($action eq "reboot") {
do_reboot($login);
} else {
if (defined($ENV{VYATTA_PROCESS_CLIENT} && $ENV{VYATTA_PROCESS_CLIENT} eq 'gui2_rest') ||
- prompt("Proceed with reboot? [confirm]", -y1d=>"y")) {
+ prompt("Proceed with reboot? (Yes/No) [No] ", -yn1d=>"n")) {
do_reboot($login);
} else {
print "Reboot canceled\n";