summaryrefslogtreecommitdiff
path: root/package/base-files/files/bin/board_detect
blob: beb7f4e6596584d0a423a88a168ec264b4b44008 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/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

/bin/config_generate