summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/freescale-mx25-3ds/defaultenv-freescale-mx25-3ds/bin/init
blob: 8eafa34dc8d80fa7dea850b888b31d44d167a301 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh

PATH=/env/bin
export PATH

. /env/config
if [ -e /dev/nor0 ]; then
	addpart /dev/nor0 $nor_parts
fi

if [ -e /dev/nand0 ]; then
	addpart /dev/nand0 $nand_parts
fi

echo
echo -n "Hit any key to stop autoboot: "
timeout -a $autoboot_timeout
if [ $? != 0 ]; then
	echo
	echo "type update_kernel nand|nor [<imagename>] to update kernel into flash"
	echo "type update_root nand|nor [<imagename>] to update rootfs into flash"
	echo
	exit
fi

boot