[PATCH] defaultenv/bin/init: skip autoboot if $autoboot_timeout is unset
Jan Luebbe
jlu at pengutronix.de
Mon Jun 25 08:06:00 EDT 2012
Signed-off-by: Jan Luebbe <jlu at pengutronix.de>
---
defaultenv/bin/init | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/defaultenv/bin/init b/defaultenv/bin/init
index 6e85a82..f535e37 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
--
1.7.10
More information about the barebox
mailing list