From: Rafał Miłecki Date: Mon, 14 Jun 2021 20:29:49 +0000 (+0200) Subject: base-files: fix typo in config_generate MAC check X-Git-Tag: v21.02.0-rc4~67 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=74dbf3412bcef16d08cd1e7bed4e32a400c8fc11;p=openwrt%2Fstaging%2Fpepe2k.git base-files: fix typo in config_generate MAC check Fixes: 125deb4d783e ("base-files: set MAC for bridge ports (devices) instead of bridge itself") Signed-off-by: Rafał Miłecki (cherry picked from commit 946019637ec9192450c685a61c589a9cbef7637b) --- 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.@device[-1].type='bridge' EOF for port in $ports; do uci add_list network.@device[-1].ports="$port"; done - [ -n "macaddr" ] && { + [ -n "$macaddr" ] && { for port in $ports; do uci -q batch <<-EOF add network device