02_network 385 B

123456789101112131415161718192021222324252627282930
  1. #!/bin/sh
  2. #
  3. # Copyright (C) 2013-2015 OpenWrt.org
  4. #
  5. . /lib/functions/uci-defaults.sh
  6. . /lib/imx6.sh
  7. board=$(imx6_board_name)
  8. board_config_update
  9. case "$board" in
  10. *gw51xx |\
  11. *gw52xx)
  12. ucidef_set_interface_lan 'eth0'
  13. ;;
  14. *gw53xx |\
  15. *gw54xx |\
  16. *gw552x)
  17. ucidef_set_interfaces_lan_wan 'eth0' 'eth1'
  18. ;;
  19. *wandboard)
  20. ucidef_set_interface_wan 'eth0'
  21. ;;
  22. esac
  23. board_config_flush
  24. exit 0