[OpenWrt-Devel] [PATCH] imx6: remove unnecessary wildcard from board name matching
Tim Harvey
tharvey at gateworks.com
Tue Mar 10 11:03:20 EDT 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>
---
v2:
- fixed typo in commit log
- rebase on current master
---
target/linux/imx6/base-files/etc/board.d/02_network | 14 +++++++-------
1 file changed, 7 insertions(+), 7 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 6ec6673..48e5f0f 100755
--- a/target/linux/imx6/base-files/etc/board.d/02_network
+++ b/target/linux/imx6/base-files/etc/board.d/02_network
@@ -11,17 +11,17 @@ board_config_update
case "$board" in
cubox-i |\
-*gw51xx |\
-*gw52xx |\
-*gw5904)
+gw51xx |\
+gw52xx |\
+gw5904)
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