barebox_default_env: fix out of tree build
[barebox-mini2440.git] / board / eukrea_cpuimx35 / env / bin / init
blob49e54c5fdd1d849bb488f0ff888d111797f87b48
1 #!/bin/sh
3 PATH=/env/bin
4 export PATH
6 . /env/config
7 if [ -e /dev/nand0 ]; then
8 addpart /dev/nand0 $nand_parts
10 # Uh, oh, hush first expands wildcards and then starts executing
11 # commands. What a bug!
12 source /env/bin/hush_hack
15 if [ -f /env/logo.bmp ]; then
16 bmp /env/logo.bmp
17 elif [ -f /env/logo.bmp.lzo ]; then
18 unlzo /env/logo.bmp.lzo /logo.bmp
19 bmp /logo.bmp
22 if [ -z $eth0.ethaddr ]; then
23 while [ -z $eth0.ethaddr ]; do
24 readline "no MAC address set for eth0. please enter the one found on your board: " eth0.ethaddr
25 done
26 echo -a /env/config "eth0.ethaddr=$eth0.ethaddr"
27 saveenv
30 echo
31 echo -n "Hit any key to stop autoboot: "
32 timeout -a $autoboot_timeout
33 if [ $? != 0 ]; then
34 echo
35 echo "type update_kernel [<imagename>] to update kernel into flash"
36 echo "type update_root [<imagename>] to update rootfs into flash"
37 echo
38 exit
41 boot