imx6: use /lib/imx6.sh inside the uci-defaults script

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41257
This commit is contained in:
John Crispin 2014-06-18 10:08:16 +00:00
parent 2773bdfebf
commit efcec0faaf

View file

@ -8,24 +8,22 @@
touch /etc/config/network touch /etc/config/network
. /lib/functions/uci-defaults.sh . /lib/functions/uci-defaults.sh
. /lib/imx6.sh
board=$(imx6_board_name)
ucidef_set_interface_loopback ucidef_set_interface_loopback
case "`cat /proc/device-tree/model`" in case "$board" in
"Gateworks Ventana i.MX6 DualLite/Solo GW51XX" |\ "gw51xx" |\
"Gateworks Ventana i.MX6 DualLite/Solo GW52XX" |\ "gw52xx")
"Gateworks Ventana i.MX6 Dual/Quad GW51XX" |\
"Gateworks Ventana i.MX6 Dual/Quad GW52XX")
ucidef_set_interface_lan 'eth0' ucidef_set_interface_lan 'eth0'
;; ;;
"Gateworks Ventana i.MX6 DualLite/Solo GW53XX" |\ "gw53xx" |\
"Gateworks Ventana i.MX6 DualLite/Solo GW54XX" |\ "gw54xx")
"Gateworks Ventana i.MX6 Dual/Quad GW53XX" |\
"Gateworks Ventana i.MX6 Dual/Quad GW54XX" |\
"Gateworks Ventana GW5400-A")
ucidef_set_interfaces_lan_wan 'eth0' 'eth1' ucidef_set_interfaces_lan_wan 'eth0' 'eth1'
;; ;;
"Wandboard i.MX6 Dual Lite Board") "wandboard")
ucidef_set_interface_wan 'eth0' ucidef_set_interface_wan 'eth0'
;; ;;
esac esac