02_network 414 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. # Copyright (C) 2014-2016 OpenWrt.org
  3. # Copyright (C) 2017 LEDE project
  4. . /lib/functions/uci-defaults.sh
  5. . /lib/brcm2708.sh
  6. . /lib/functions.sh
  7. . /lib/functions/system.sh
  8. board_config_update
  9. board=$(brcm2708_board_name)
  10. case "$board" in
  11. rpi-2-b |\
  12. rpi-3-b |\
  13. rpi-b |\
  14. rpi-b-plus)
  15. ucidef_set_interface_lan "eth0"
  16. ;;
  17. rpi-zero-w)
  18. ucidef_set_interface_lan "wlan0"
  19. ;;
  20. esac
  21. board_config_flush
  22. exit 0