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