From: Luka Perkov Date: Wed, 16 Oct 2013 03:25:51 +0000 (+0000) Subject: imx6: minor (cosmetic) changes in uci-defaults X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=88590e4cb7af8cb74419000d88956e139a880585;p=openwrt%2Fstaging%2Fansuel.git imx6: minor (cosmetic) changes in uci-defaults Signed-off-by: Luka Perkov SVN-Revision: 38421 --- 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 e115a9e954..a8b748275e 100644 --- a/target/linux/imx6/base-files/etc/uci-defaults/02_network +++ b/target/linux/imx6/base-files/etc/uci-defaults/02_network @@ -5,15 +5,13 @@ [ -e /etc/config/network ] && exit 0 -. /lib/functions/uci-defaults.sh - 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 +case "`cat /proc/device-tree/model`" in "Gateworks Ventana GW51XX" |\ "Gateworks Ventana GW52XX") ucidef_set_interface_lan 'eth0'