summaryrefslogtreecommitdiffstats
path: root/defaultenv-2/base/bin/boot
blob: c5ad73dde863c7ec51fc6125dd0241746b933ad1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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