summaryrefslogtreecommitdiffstats
path: root/defaultenv
diff options
context:
space:
mode:
authorJan Luebbe <jlu@pengutronix.de>2012-06-25 14:06:00 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-06-30 12:47:04 +0200
commit4ef0846589203b35d70295e7e6e6a58d71e20fa0 (patch)
treeb36cf8cf73eb314f39b8a182e821f81b28d0915c /defaultenv
parent5ecbd4a40fc0a320f59bf380aaa780f18b199f7b (diff)
downloadbarebox-4ef0846589203b35d70295e7e6e6a58d71e20fa0.tar.gz
barebox-4ef0846589203b35d70295e7e6e6a58d71e20fa0.tar.xz
defaultenv/bin/init: skip autoboot if $autoboot_timeout is unset
Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'defaultenv')
-rw-r--r--defaultenv/bin/init2
1 files changed, 1 insertions, 1 deletions
diff --git a/defaultenv/bin/init b/defaultenv/bin/init
index 6e85a82e8c..f535e3781c 100644
--- a/defaultenv/bin/init
+++ b/defaultenv/bin/init
@@ -23,7 +23,7 @@ fi
if [ -f /env/bin/boot_board ]; then
. /env/bin/boot_board
-else
+elif [ -n $autoboot_timeout ]; then
echo
echo -n "Hit any key to stop autoboot: "
timeout -a $autoboot_timeout