summaryrefslogtreecommitdiffstats
path: root/configs/platform-v7a/barebox-vexpress-defaultenv/init/bootsource
blob: ed0692fc1e0844f1c7803e29d3a249cf5ae59db4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

if [ -n "$nv.boot.default" ]; then
	exit
fi

if [ $bootsource = mmc ]; then
	global.boot.default="bootchooser net"
elif [ $bootsource = net ]; then
	global.boot.default="net bootchooser"
else
	global.boot.default="disk0.0 net"
fi