#!/bin/sh # # Copyright (C) 2015 OpenWrt.org # [ -e /etc/config/network ] && exit 0 touch /etc/config/network . /lib/functions/uci-defaults.sh . /lib/socfpga.sh board=$(socfpga_board_name) ucidef_set_interface_loopback case "$board" in "socfpga-sockit") ucidef_set_interface_lan 'eth0' ;; esac uci commit network exit 0