02_network 295 B

12345678910111213141516171819202122232425
  1. #!/bin/sh
  2. #
  3. # Copyright (C) 2014-2015 OpenWrt.org
  4. #
  5. . /lib/functions/uci-defaults.sh
  6. . /lib/at91.sh
  7. board_config_update
  8. case "$(at91_board_name)" in
  9. sama5d3_xplained)
  10. ucidef_set_interfaces_lan_wan "eth0" "eth1"
  11. ;;
  12. *)
  13. ucidef_set_interface_lan "eth0"
  14. ;;
  15. esac
  16. board_config_flush
  17. exit 0