Newer
Older
barebox / arch / arm / boards / eukrea_cpuimx25 / env / bin / init_board
@Sascha Hauer Sascha Hauer on 29 Nov 2011 411 bytes update configs and default envs for uncompress
#!/bin/sh

if [ -f /env/logo.bmp ]; then
	bmp /env/logo.bmp
	fb0.enable=1
elif [ -f /env/logo.bmp.lzo ]; then
	uncompress /env/logo.bmp.lzo /logo.bmp
	bmp /logo.bmp
	fb0.enable=1
fi

if [ -z $eth0.ethaddr ]; then
	while [ -z $eth0.ethaddr ]; do
		readline "no MAC address set for eth0. please enter the one found on your board: " eth0.ethaddr
	done
	echo -a /env/config "eth0.ethaddr=$eth0.ethaddr"
	saveenv
fi