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