96e4da8cb1477a1065a0057c07cbda5fa4e76366
[openwrt.git] / target / linux / imx6 / base-files / etc / uci-defaults / 02_network
1 #!/bin/sh
2 #
3 # Copyright (C) 2013 OpenWrt.org
4 #
5
6 [ -e /etc/config/network ] && exit 0
7
8 . /lib/functions/uci-defaults.sh
9
10 touch /etc/config/network
11
12 ucidef_set_interface_loopback
13
14 board=$(cat /proc/device-tree/model)
15
16 case "$board" in
17 "Gateworks Ventana GW5400-A")
18         ucidef_set_interface_lan 'eth0'
19         ;;
20 "Wandboard i.MX6 Dual Lite Board")
21         ucidef_set_interface_wan 'eth0'
22         ;;
23 esac
24
25 uci commit network
26
27 exit 0