Newer
Older
barebox / defaultenv-2 / base / bin / boot
@Sascha Hauer Sascha Hauer on 18 May 2012 246 bytes Add next generation default environment template
#!/bin/sh

if [ $# = 0 ]; then
	scr="$global.boot.default"
else
	scr="$1"
fi

if [ -n "$scr" ]; then
	if [ ! -f /env/boot/$scr ]; then
		echo -e "/env/boot/$scr does not exist.\nValid choices:"
		ls /env/boot
		exit
	fi
	/env/boot/$scr
fi

bootm