02_network 330 B

12345678910111213141516171819202122232425
  1. #!/bin/sh
  2. #
  3. # Copyright (C) 2015 OpenWrt.org
  4. #
  5. [ -e /etc/config/network ] && exit 0
  6. touch /etc/config/network
  7. . /lib/functions/uci-defaults.sh
  8. . /lib/socfpga.sh
  9. board=$(socfpga_board_name)
  10. ucidef_set_interface_loopback
  11. case "$board" in
  12. "socfpga-sockit")
  13. ucidef_set_interface_lan 'eth0'
  14. ;;
  15. esac
  16. uci commit network
  17. exit 0