1
0

board_detect 204 B

1234567891011121314
  1. #!/bin/sh
  2. CFG=$1
  3. [ -n "$CFG" ] || CFG=/etc/board.json
  4. [ -d "/etc/board.d/" -a ! -s "$CFG" ] && {
  5. for a in `ls /etc/board.d/*`; do
  6. [ -x $a ] || continue;
  7. $(. $a)
  8. done
  9. }
  10. [ -s "$CFG" ] || return 1