02_network 611 B

123456789101112131415161718192021222324252627282930313233
  1. # Copyright (C) 2014-2016 OpenWrt.org
  2. # Copyright (C) 2017 LEDE project
  3. . /lib/functions/uci-defaults.sh
  4. . /lib/functions.sh
  5. . /lib/functions/system.sh
  6. board_config_update
  7. board=$(board_name)
  8. case "$board" in
  9. raspberrypi,model-b |\
  10. raspberrypi,model-b-plus |\
  11. raspberrypi,model-b-rev2 |\
  12. raspberrypi,2-model-b |\
  13. raspberrypi,2-model-b-rev2 |\
  14. raspberrypi,3-model-b |\
  15. raspberrypi,3-model-b-plus |\
  16. raspberrypi,400 |\
  17. raspberrypi,4-compute-module |\
  18. raspberrypi,4-model-b)
  19. ucidef_set_interface_lan "eth0"
  20. ;;
  21. raspberrypi,model-zero-w)
  22. ucidef_set_interface_lan "wlan0"
  23. ;;
  24. esac
  25. board_config_flush
  26. exit 0