openwrtv4/package/base-files/files/bin/board_detect

13 lines
202 B
Text
Raw Normal View History

#!/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