Newer
Older
barebox / arch / arm / boards / efika-mx-smartbook / defaultenv-efikasb / init / bootsource
@Sascha Hauer Sascha Hauer on 8 Dec 2014 269 bytes Merge branch 'for-next/persistent-vars'
#!/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