[OpenWrt-Devel] [PATCH] imx6: remove unnecessary wildcard from board name mathching

Tim Harvey tharvey at gateworks.com
Mon Mar 2 12:02:26 EST 2020


The wildcard used in the network config matching is not necessary
given the board names returned by imx6_board_detect() in lib/imx6.sh.

Signed-off-by: Tim Harvey <tharvey at gateworks.com>
---
 .../linux/imx6/base-files/etc/board.d/02_network   | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/target/linux/imx6/base-files/etc/board.d/02_network b/target/linux/imx6/base-files/etc/board.d/02_network
index 13a140a..bc05313 100755
--- a/target/linux/imx6/base-files/etc/board.d/02_network
+++ b/target/linux/imx6/base-files/etc/board.d/02_network
@@ -11,21 +11,21 @@ board_config_update
 
 case "$board" in
 cubox-i |\
-*gw51xx |\
-*gw52xx |\
-*gw5904 |\
-*gw5907 |\
-*gw5910 |\
-*gw5912 |\
-*gw5913)
+gw51xx |\
+gw52xx |\
+gw5904 |\
+gw5907 |\
+gw5910 |\
+gw5912 |\
+gw5913)
 	ucidef_set_interface_lan 'eth0'
 	;;
-*gw53xx |\
-*gw54xx |\
-*gw552x)
+gw53xx |\
+gw54xx |\
+gw552x)
 	ucidef_set_interfaces_lan_wan 'eth0' 'eth1'
 	;;
-*wandboard)
+wandboard)
 	ucidef_set_interface_wan 'eth0'
 	;;
 esac
-- 
2.7.4


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list