e934a129f0
Instead of board_detect generating the config as a side effect, let config_generate call board_detect as needed. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
10 lines
180 B
Bash
Executable file
10 lines
180 B
Bash
Executable file
#!/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
|