Newer
Older
barebox / arch / arm / boards / efika-mx-smartbook / env / init / bootsource
@Sascha Hauer Sascha Hauer on 6 Nov 2014 269 bytes defaultenv-2: Make use of nonvolatile variables
#!/bin/sh

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

# by default pick kernel from MMC card if booting from
# it, otherwise default to boot from internal harddisk

if [ $bootsource = mmc ]; then
	global.boot.default=mmc-left
else
	global.boot.default=hd-internal
fi