imx6: use upstream gateworks board names
[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 touch /etc/config/network
9
10 . /lib/functions/uci-defaults.sh
11
12 ucidef_set_interface_loopback
13
14 case "`cat /proc/device-tree/model`" in
15 "Gateworks Ventana i.MX6 DualLite GW51XX" |\
16 "Gateworks Ventana i.MX6 DualLite GW52XX" |\
17 "Gateworks Ventana i.MX6 Quad GW51XX" |\
18 "Gateworks Ventana i.MX6 Quad GW52XX")
19         ucidef_set_interface_lan 'eth0'
20         ;;
21 "Gateworks Ventana i.MX6 DualLite GW53XX" |\
22 "Gateworks Ventana i.MX6 DualLite GW54XX" |\
23 "Gateworks Ventana i.MX6 Quad GW53XX" |\
24 "Gateworks Ventana i.MX6 Quad GW54XX" |\
25 "Gateworks Ventana GW5400-A")
26         ucidef_set_interfaces_lan_wan 'eth0' 'eth1'
27         ;;
28 "Wandboard i.MX6 Dual Lite Board")
29         ucidef_set_interface_wan 'eth0'
30         ;;
31 esac
32
33 uci commit network
34
35 exit 0