summaryrefslogtreecommitdiff
path: root/target/linux/imx6/base-files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-06-18 10:08:16 +0000
committerJohn Crispin <john@openwrt.org>2014-06-18 10:08:16 +0000
commitefcec0faaf7e2977681ccb533d07abfb7f36b771 (patch)
tree139c3d37ce60271f02f96cf5b7c5b1bd49e6a8b9 /target/linux/imx6/base-files
parent2773bdfebfff3810f20fd65a35e41e40ea95c19c (diff)
downloadmtk-20170518-efcec0faaf7e2977681ccb533d07abfb7f36b771.zip
mtk-20170518-efcec0faaf7e2977681ccb533d07abfb7f36b771.tar.gz
mtk-20170518-efcec0faaf7e2977681ccb533d07abfb7f36b771.tar.bz2
imx6: use /lib/imx6.sh inside the uci-defaults script
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 41257
Diffstat (limited to 'target/linux/imx6/base-files')
-rw-r--r--target/linux/imx6/base-files/etc/uci-defaults/02_network20
1 files changed, 9 insertions, 11 deletions
diff --git a/target/linux/imx6/base-files/etc/uci-defaults/02_network b/target/linux/imx6/base-files/etc/uci-defaults/02_network
index 5ffb645..64e060a 100644
--- a/target/linux/imx6/base-files/etc/uci-defaults/02_network
+++ b/target/linux/imx6/base-files/etc/uci-defaults/02_network
@@ -8,24 +8,22 @@
touch /etc/config/network
. /lib/functions/uci-defaults.sh
+. /lib/imx6.sh
+
+board=$(imx6_board_name)
ucidef_set_interface_loopback
-case "`cat /proc/device-tree/model`" in
-"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")
+case "$board" in
+"gw51xx" |\
+"gw52xx")
ucidef_set_interface_lan 'eth0'
;;
-"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" |\
-"Gateworks Ventana GW5400-A")
+"gw53xx" |\
+"gw54xx")
ucidef_set_interfaces_lan_wan 'eth0' 'eth1'
;;
-"Wandboard i.MX6 Dual Lite Board")
+"wandboard")
ucidef_set_interface_wan 'eth0'
;;
esac