defaultenv: add support for custom board boot
This will allow a board to have a custom boot choice with a boot menu as example. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
05e58adca0
commit
675afd265b
|
@ -24,11 +24,15 @@ if [ -f /env/bin/init_board ]; then
|
|||
. /env/bin/init_board
|
||||
fi
|
||||
|
||||
echo
|
||||
echo -n "Hit any key to stop autoboot: "
|
||||
timeout -a $autoboot_timeout
|
||||
if [ $? != 0 ]; then
|
||||
exit
|
||||
fi
|
||||
if [ -f /env/bin/boot_board ]; then
|
||||
. /env/bin/boot_board
|
||||
else
|
||||
echo
|
||||
echo -n "Hit any key to stop autoboot: "
|
||||
timeout -a $autoboot_timeout
|
||||
if [ $? != 0 ]; then
|
||||
exit
|
||||
fi
|
||||
|
||||
boot
|
||||
boot
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue