02_network 1009 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. . /lib/functions/uci-defaults.sh
  2. board_config_update
  3. case "$(board_name)" in
  4. dlink,dir-685)
  5. # These are all connected to eth0 thru RTL8366RB
  6. ucidef_set_interface "eth" device "eth0" protocol "none"
  7. ucidef_set_interfaces_lan_wan "lan0 lan1 lan2 lan3" "wan"
  8. ;;
  9. dlink,dns-313|\
  10. edimax,ns-2502|\
  11. raidsonic,ib-4220-b|\
  12. wiliboard,wbd111|\
  13. wiliboard,wbd222)
  14. # NAS machines with a single ethernet port
  15. ucidef_set_interface_lan "eth0" "dhcp"
  16. ;;
  17. itian,sq201)
  18. # These are all connected to eth1 thru VSC7395
  19. ucidef_set_interface "eth" device "eth1" protocol "none"
  20. ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "eth0"
  21. ;;
  22. ssi,1328)
  23. ucidef_set_interfaces_lan_wan "eth0" "eth1"
  24. ;;
  25. storlink,gemini324)
  26. # These are all connected to eth1 thru VSC7385
  27. ucidef_set_interface "eth" device "eth1" protocol "none"
  28. ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "eth0"
  29. ;;
  30. teltonika,rut1xx)
  31. # One ethernet LAN which is offering DHCP
  32. ucidef_set_interface_lan "eth0"
  33. ;;
  34. esac
  35. board_config_flush
  36. exit 0