summaryrefslogtreecommitdiff
path: root/target/linux/imx6/base-files
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2013-10-16 03:25:51 +0000
committerLuka Perkov <luka@openwrt.org>2013-10-16 03:25:51 +0000
commit88590e4cb7af8cb74419000d88956e139a880585 (patch)
tree841b3e6b8581da0216c24a76d86131b999b06c9d /target/linux/imx6/base-files
parent3365d8981787a62c2284f57ef64d49a87a5d692d (diff)
downloadmtk-20170518-88590e4cb7af8cb74419000d88956e139a880585.zip
mtk-20170518-88590e4cb7af8cb74419000d88956e139a880585.tar.gz
mtk-20170518-88590e4cb7af8cb74419000d88956e139a880585.tar.bz2
imx6: minor (cosmetic) changes in uci-defaults
Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 38421
Diffstat (limited to 'target/linux/imx6/base-files')
-rw-r--r--target/linux/imx6/base-files/etc/uci-defaults/02_network8
1 files changed, 3 insertions, 5 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 e115a9e..a8b74827 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'