diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-11-01 11:31:39 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-11-01 11:31:39 -0500 |
commit | 9b6def2fc92a229f6446e7b10676ca8ca9bf49ab (patch) | |
tree | 28c5d9f1ef1e91a763491bba237809df0feb3c8a /scripts | |
parent | aa49120c54a5aa8afcb23e82da46686a4e2d5d28 (diff) | |
download | vyatta-op-9b6def2fc92a229f6446e7b10676ca8ca9bf49ab.tar.gz vyatta-op-9b6def2fc92a229f6446e7b10676ca8ca9bf49ab.zip |
Wait for user to hit enter before continuing with a reboot
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 f738986..3dc212c 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? (Yes/No) [No] ", -yn1d=>"n")) { + prompt("Proceed with reboot? (Yes/No) [No] ", -ynd=>"n")) { do_reboot($login); } else { print "Reboot canceled\n"; |