19c0219d4e
This usage printout during startup more looks like there is something wrong with the environment than a helpful message. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Acked-by: Eric Bénard <eric@eukrea.com> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
35 lines
588 B
Bash
35 lines
588 B
Bash
#!/bin/sh
|
|
|
|
PATH=/env/bin
|
|
export PATH
|
|
|
|
. /env/config
|
|
if [ -e /dev/nor0 -a -n "$nor_parts" ]; then
|
|
addpart /dev/nor0 $nor_parts
|
|
fi
|
|
|
|
if [ -e /dev/disk0 -a -n "$disk_parts" ]; then
|
|
addpart /dev/disk0 $disk_parts
|
|
fi
|
|
|
|
if [ -e /dev/nand0 -a -n "$nand_parts" ]; then
|
|
addpart /dev/nand0 $nand_parts
|
|
|
|
# Uh, oh, hush first expands wildcards and then starts executing
|
|
# commands. What a bug!
|
|
source /env/bin/hush_hack
|
|
fi
|
|
|
|
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
|
|
|
|
boot
|