imx6: update network defaults for Gateworks Ventana
[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 GW51XX" |\
18 "Gateworks Ventana GW52XX")
19         ucidef_set_interface_lan 'eth0'
20         ;;
21 "Gateworks Ventana GW53XX" |\
22 "Gateworks Ventana GW54XX" |\
23 "Gateworks Ventana GW5400-A")
24         ucidef_set_interfaces_lan_wan 'eth0' 'eth1'
25         ;;
26 "Wandboard i.MX6 Dual Lite Board")
27         ucidef_set_interface_wan 'eth0'
28         ;;
29 esac
30
31 uci commit network
32
33 exit 0