summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/phytec-phyflex-am335x/defaultenv-phyflex-am335x/init/bootsource
blob: 76d1f9b3c2a643aa8b2fec1523cdfaf5c2148e0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

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

if [ $bootsource = mmc ]; then
	global.boot.default="mmc nand spi net"
elif [ $boosource = nand ]; then
	global.boot.default="nand spi mmc net"
elif [ $boosource = spi ]; then
	global.boot.default="spi nand mmc net"
elif [ $boosource = net ]; then
	global.boot.default="net nand spi mmc"
fi