02_network 398 B

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