diff options
author | John Crispin <blogic@openwrt.org> | 2014-06-18 10:08:16 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-06-18 10:08:16 +0000 |
commit | d8e56de762bc32636f9e00ed586e2aa1aa90e36d (patch) | |
tree | c898d56d2a4c306f82179790012e7174b12b1691 /target | |
parent | 814e6c7b356cca249ba9b6c60e8586a5ad1088f8 (diff) | |
download | upstream-d8e56de762bc32636f9e00ed586e2aa1aa90e36d.tar.gz upstream-d8e56de762bc32636f9e00ed586e2aa1aa90e36d.tar.bz2 upstream-d8e56de762bc32636f9e00ed586e2aa1aa90e36d.zip |
imx6: use /lib/imx6.sh inside the uci-defaults script
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41257 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/imx6/base-files/etc/uci-defaults/02_network | 20 |
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 5ffb6456f1..64e060a8e0 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 |