Newer
Older
barebox / arch / arm / boards / phytec-phycore-am335x / defaultenv-phycore-am335x / init / bootsource
@Teresa Gámez Teresa Gámez on 11 Dec 2014 350 bytes ARM: AM335x: Fix typo in Phytec boards
#!/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