summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/eukrea_cpuimx35/env/bin/init_board
blob: 173ecf9b57673777549e2ba7bb6d30db1d24426f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

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