imx6: use upstream gateworks board names
[openwrt.git] / target / linux / imx6 / base-files / etc / uci-defaults / 02_network
index e115a9e..9a221dd 100644 (file)
@@ -5,21 +5,23 @@
 
 [ -e /etc/config/network ] && exit 0
 
 
 [ -e /etc/config/network ] && exit 0
 
-. /lib/functions/uci-defaults.sh
-
 touch /etc/config/network
 
 touch /etc/config/network
 
-ucidef_set_interface_loopback
+. /lib/functions/uci-defaults.sh
 
 
-board=$(cat /proc/device-tree/model)
+ucidef_set_interface_loopback
 
 
-case "$board" in
-"Gateworks Ventana GW51XX" |\
-"Gateworks Ventana GW52XX")
+case "`cat /proc/device-tree/model`" in
+"Gateworks Ventana i.MX6 DualLite GW51XX" |\
+"Gateworks Ventana i.MX6 DualLite GW52XX" |\
+"Gateworks Ventana i.MX6 Quad GW51XX" |\
+"Gateworks Ventana i.MX6 Quad GW52XX")
        ucidef_set_interface_lan 'eth0'
        ;;
        ucidef_set_interface_lan 'eth0'
        ;;
-"Gateworks Ventana GW53XX" |\
-"Gateworks Ventana GW54XX" |\
+"Gateworks Ventana i.MX6 DualLite GW53XX" |\
+"Gateworks Ventana i.MX6 DualLite GW54XX" |\
+"Gateworks Ventana i.MX6 Quad GW53XX" |\
+"Gateworks Ventana i.MX6 Quad GW54XX" |\
 "Gateworks Ventana GW5400-A")
        ucidef_set_interfaces_lan_wan 'eth0' 'eth1'
        ;;
 "Gateworks Ventana GW5400-A")
        ucidef_set_interfaces_lan_wan 'eth0' 'eth1'
        ;;