diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-10-17 18:56:38 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-10-17 18:56:38 -0500 |
commit | ccf2a40b2d30860618c45d6bd8a73eed8638fdd4 (patch) | |
tree | fc8ec4bacbefde14e53fa0cf846e8ba1eda5f169 /scripts | |
parent | 24590debf0c05d7f63aab62c8ddf7c22e01ac075 (diff) | |
download | vyatta-op-ccf2a40b2d30860618c45d6bd8a73eed8638fdd4.tar.gz vyatta-op-ccf2a40b2d30860618c45d6bd8a73eed8638fdd4.zip |
Make the reboot syntax the same as the poweroff syntax; require the affirmative answer instead of defaulting to it
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/vyatta-reboot.pl | 2 |
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"; |