02_network 370 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/sh
  2. . /lib/functions/system.sh
  3. . /lib/functions/uci-defaults.sh
  4. board_config_update
  5. board=$(board_name)
  6. case "$board" in
  7. mbl|\
  8. mr24)
  9. ucidef_set_interface_lan "eth0"
  10. ;;
  11. mx60|\
  12. wndr4700)
  13. ucidef_add_switch "switch0" \
  14. "0@eth0" "4:lan" "3:lan" "2:lan" "1:lan" "5:wan"
  15. ;;
  16. *)
  17. ucidef_set_interfaces_lan_wan "eth0" "eth1"
  18. ;;
  19. esac
  20. board_config_flush
  21. exit 0