summaryrefslogtreecommitdiffstats
path: root/common/startup.c
diff options
context:
space:
mode:
authorAhmad Fatoum <ahmad@a3f.at>2020-04-22 09:35:15 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-04-27 21:16:05 +0200
commitc5c6fa599fcc2e1506b4088993d4e36bb6a21543 (patch)
treec9de66ec2025159f47e1120ac396130cc61e39b6 /common/startup.c
parent1a546e28341ba3e733d1f1f9fc6d60de6b195298 (diff)
downloadbarebox-c5c6fa599fcc2e1506b4088993d4e36bb6a21543.tar.gz
barebox-c5c6fa599fcc2e1506b4088993d4e36bb6a21543.tar.xz
startup: rename AUTOBOOT_UNKNOWN to more descriptive AUTOBOOT_COUNTDOWN
If we export the autoboot state variable for customization, having unknown as default is not so helpful. Rename it to what actually happens (abortable countdown). Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/startup.c')
-rw-r--r--common/startup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/startup.c b/common/startup.c
index e251142fca..7373ba7d0c 100644
--- a/common/startup.c
+++ b/common/startup.c
@@ -195,7 +195,7 @@ static bool test_abort(void)
#define INITFILE "/env/bin/init"
#define MENUFILE "/env/menu/mainmenu"
-static enum autoboot_state autoboot_state = AUTOBOOT_UNKNOWN;
+static enum autoboot_state autoboot_state = AUTOBOOT_COUNTDOWN;
/**
* set_autoboot_state - set the autoboot state
@@ -229,7 +229,7 @@ enum autoboot_state do_autoboot_countdown(void)
char *abortkeys = NULL;
unsigned char outkey;
- if (autoboot_state != AUTOBOOT_UNKNOWN)
+ if (autoboot_state != AUTOBOOT_COUNTDOWN)
return autoboot_state;
menu_exists = stat(MENUFILE, &s) == 0;