02_network 330 B

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