mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-21 22:21:36 +00:00
autoboot: add an option to override keyed autoboot
As originally implemented, setting the AUTOBOOT_KEYED config option will prevent users from breaking into the autoboot script with ctrl-c. Restore that option with a new config symbol. Signed-off-by: Mark Langsdorf <mark.langsdorf@calxeda.com>
This commit is contained in:
parent
212d7dadcd
commit
00ddacc1a1
2 changed files with 10 additions and 2 deletions
|
@ -392,13 +392,13 @@ static void process_boot_delay(void)
|
|||
debug ("### main_loop: bootcmd=\"%s\"\n", s ? s : "<UNDEFINED>");
|
||||
|
||||
if (bootdelay != -1 && s && !abortboot(bootdelay)) {
|
||||
#ifdef CONFIG_AUTOBOOT_KEYED
|
||||
#if defined(CONFIG_AUTOBOOT_KEYED) && !defined(CONFIG_AUTOBOOT_KEYED_CTRLC)
|
||||
int prev = disable_ctrlc(1); /* disable Control C checking */
|
||||
#endif
|
||||
|
||||
run_command_list(s, -1, 0);
|
||||
|
||||
#ifdef CONFIG_AUTOBOOT_KEYED
|
||||
#if defined(CONFIG_AUTOBOOT_KEYED) && !defined(CONFIG_AUTOBOOT_KEYED_CTRLC)
|
||||
disable_ctrlc(prev); /* restore Control C checking */
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue