From 756c4a467fae764430fa70f89c15d405c5943157 Mon Sep 17 00:00:00 2001 From: John Southworth Date: Mon, 17 Oct 2011 18:56:38 -0500 Subject: Make the reboot syntax the same as the poweroff syntax; require the affirmative answer instead of defaulting to it (cherry picked from commit ccf2a40b2d30860618c45d6bd8a73eed8638fdd4) --- scripts/vyatta-reboot.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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"; -- cgit v1.2.3