2014-08-18 13:09:17 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2016-08-13 12:04:23 +00:00
|
|
|
CFG=$1
|
|
|
|
|
|
|
|
[ -n "$CFG" ] || CFG=/etc/board.json
|
|
|
|
|
|
|
|
[ -d "/etc/board.d/" -a ! -f "$CFG" ] && {
|
2014-08-18 13:09:17 +00:00
|
|
|
for a in `ls /etc/board.d/*`; do
|
|
|
|
[ -x $a ] || continue;
|
|
|
|
$(. $a)
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
2016-08-13 12:04:23 +00:00
|
|
|
[ -f "$CFG" ] || return 1
|