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