summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/phytec-som-imx6/defaultenv-physom-imx6/init/bootsource
blob: 3f2ff4bcc83645422af63757712207ba4f959caf (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 [ $bootsource = nand ]; then
	global.boot.default="nand spi mmc net"
elif [ $bootsource = spi ]; then
	global.boot.default="spi nand mmc net"
elif [ $bootsource = net ]; then
	global.boot.default="net nand spi mmc"
fi