Newer
Older
barebox / arch / arm / boards / eukrea_cpuimx51 / env / bin / init_board
@Jean-Christophe PLAGNIOL-VILLARD Jean-Christophe PLAGNIOL-VILLARD on 12 Sep 2012 457 bytes bmp: rename it to splash
#!/bin/sh

if [ -f /env/logo.bmp ]; then
	splash /env/logo.bmp
	fb0.enable=1
	gpio_set_value 1 1
elif [ -f /env/logo.bmp.lzo ]; then
	uncompress /env/logo.bmp.lzo /logo.bmp
	splash /logo.bmp
	fb0.enable=1
	gpio_set_value 1 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