Newer
Older
barebox / arch / arm / boards / phytec-som-imx6 / defaultenv-physom-imx6 / init / bootsource
@Christian Hemp Christian Hemp on 9 Nov 2015 350 bytes ARM: phytec-som-imx6: update environment
#!/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