[openwrt/openwrt] base-files: fix typo in config_generate MAC check

LEDE Commits lede-commits at lists.infradead.org
Mon Jun 14 13:30:36 PDT 2021


rmilecki pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/946019637ec9192450c685a61c589a9cbef7637b

commit 946019637ec9192450c685a61c589a9cbef7637b
Author: Rafał Miłecki <rafal at milecki.pl>
AuthorDate: Mon Jun 14 22:29:49 2021 +0200

    base-files: fix typo in config_generate MAC check
    
    Fixes: 8d8eb9d13fc6 ("base-files: set MAC for bridge ports (devices) instead of bridge itself")
    Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
---
 package/base-files/files/bin/config_generate | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/base-files/files/bin/config_generate b/package/base-files/files/bin/config_generate
index b3752c5430..596fcf41fa 100755
--- a/package/base-files/files/bin/config_generate
+++ b/package/base-files/files/bin/config_generate
@@ -116,7 +116,7 @@ generate_network() {
 			set network. at device[-1].type='bridge'
 		EOF
 		for port in $ports; do uci add_list network. at device[-1].ports="$port"; done
-		[ -n "macaddr" ] && {
+		[ -n "$macaddr" ] && {
 			for port in $ports; do
 				uci -q batch <<-EOF
 					add network device



More information about the lede-commits mailing list