summaryrefslogtreecommitdiff
path: root/package/base-files/files/bin/board_detect
blob: 3a23381c2c44d61f02090552cb07097b51bb4fc8 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

[ -d "/etc/board.d/" -a ! -f "/etc/board.json" ] && {
	for a in `ls /etc/board.d/*`; do
		[ -x $a ] || continue;
		$(. $a)
	done
}

[ -f "/etc/board.json" ] || return 1