board_detect 265 B

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