imx6: minor (cosmetic) changes in uci-defaults
authorLuka Perkov <luka@openwrt.org>
Wed, 16 Oct 2013 03:25:51 +0000 (03:25 +0000)
committerLuka Perkov <luka@openwrt.org>
Wed, 16 Oct 2013 03:25:51 +0000 (03:25 +0000)
Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 38421

target/linux/imx6/base-files/etc/uci-defaults/02_network

index e115a9e954b340a8c01c5e29fc4d121618a298f6..a8b748275e01a3e4917190655967f40a089a78e7 100644 (file)
@@ -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'