02_network 646 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/bin/sh
  2. #
  3. # Copyright (C) 2012-2015 OpenWrt.org
  4. #
  5. . /lib/functions/uci-defaults.sh
  6. . /lib/functions/system.sh
  7. . /lib/kirkwood.sh
  8. board_config_update
  9. board=$(kirkwood_board_name)
  10. case "$board" in
  11. "dockstar"|\
  12. "goflexhome"|\
  13. "goflexnet"|\
  14. "ib62x0"|\
  15. "iconnect"|\
  16. "nsa310s"|\
  17. "pogo_e02"|\
  18. "sheevaplug"|\
  19. "sheevaplug-esata")
  20. ucidef_set_interface_lan "eth0" "dhcp"
  21. ;;
  22. "linksys-audi"|\
  23. "linksys-viper")
  24. ucidef_add_switch "switch0" \
  25. "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "5@eth0" "6@eth1"
  26. ;;
  27. "guruplug-server-plus")
  28. ucidef_set_interface_lan "eth0 eth1" "dhcp"
  29. ;;
  30. *)
  31. ucidef_set_interface_lan "eth0"
  32. ;;
  33. esac
  34. board_config_flush
  35. exit 0