summaryrefslogtreecommitdiffstats
path: root/configs/platform-v7a/barebox-am335x-defaultenv/init/bootsource
blob: 4de71635720a8c13fbed81c4a39cd7759250ac0f (plain) (blame)
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.1 net"
fi