barebox_default_env: fix out of tree build
[barebox-mini2440.git] / board / eukrea_cpuimx27 / env / bin / init
blob3bfd194913adf09d7d7cf5af7d0b8bda548ff290
1 #!/bin/sh
3 PATH=/env/bin
4 export PATH
6 . /env/config
7 if [ -e /dev/nor0 ]; then
8 addpart /dev/nor0 $nor_parts
9 fi
11 if [ -e /dev/nand0 ]; then
12 addpart /dev/nand0 $nand_parts
14 # Uh, oh, hush first expands wildcards and then starts executing
15 # commands. What a bug!
16 source /env/bin/hush_hack
19 if [ -z $eth0.ethaddr ]; then
20 while [ -z $eth0.ethaddr ]; do
21 readline "no MAC address set for eth0. please enter the one found on your board: " eth0.ethaddr
22 done
23 echo -a /env/config "eth0.ethaddr=$eth0.ethaddr"
26 echo
27 echo -n "Hit any key to stop autoboot: "
28 timeout -a $autoboot_timeout
29 if [ $? != 0 ]; then
30 echo
31 echo "type update_kernel nand|nor [<imagename>] to update kernel into flash"
32 echo "type update_root nand|nor [<imagename>] to update rootfs into flash"
33 echo
34 exit
37 boot