2013-05-29 01:27:29 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Copyright (C) 2013 OpenWrt.org
|
|
|
|
#
|
|
|
|
|
|
|
|
[ -e /etc/config/network ] && exit 0
|
|
|
|
|
|
|
|
touch /etc/config/network
|
|
|
|
|
2013-10-16 03:25:51 +00:00
|
|
|
. /lib/functions/uci-defaults.sh
|
2013-05-29 01:27:29 +00:00
|
|
|
|
2013-10-16 03:25:51 +00:00
|
|
|
ucidef_set_interface_loopback
|
2013-05-29 01:27:29 +00:00
|
|
|
|
2013-10-16 03:25:51 +00:00
|
|
|
case "`cat /proc/device-tree/model`" in
|
2014-06-02 21:23:34 +00:00
|
|
|
"Gateworks Ventana i.MX6 DualLite/Solo GW51XX" |\
|
|
|
|
"Gateworks Ventana i.MX6 DualLite/Solo GW52XX" |\
|
|
|
|
"Gateworks Ventana i.MX6 Dual/Quad GW51XX" |\
|
|
|
|
"Gateworks Ventana i.MX6 Dual/Quad GW52XX")
|
2013-09-13 21:50:35 +00:00
|
|
|
ucidef_set_interface_lan 'eth0'
|
|
|
|
;;
|
2014-06-02 21:23:34 +00:00
|
|
|
"Gateworks Ventana i.MX6 DualLite/Solo GW53XX" |\
|
|
|
|
"Gateworks Ventana i.MX6 DualLite/Solo GW54XX" |\
|
|
|
|
"Gateworks Ventana i.MX6 Dual/Quad GW53XX" |\
|
|
|
|
"Gateworks Ventana i.MX6 Dual/Quad GW54XX" |\
|
2013-09-20 01:59:30 +00:00
|
|
|
"Gateworks Ventana GW5400-A")
|
|
|
|
ucidef_set_interfaces_lan_wan 'eth0' 'eth1'
|
|
|
|
;;
|
2013-05-29 01:27:29 +00:00
|
|
|
"Wandboard i.MX6 Dual Lite Board")
|
|
|
|
ucidef_set_interface_wan 'eth0'
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
uci commit network
|
|
|
|
|
|
|
|
exit 0
|