base-files: fix typo in config_generate MAC check
authorRafał Miłecki <rafal@milecki.pl>
Mon, 14 Jun 2021 20:29:49 +0000 (22:29 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Tue, 22 Jun 2021 06:10:49 +0000 (08:10 +0200)
Fixes: 125deb4d783e ("base-files: set MAC for bridge ports (devices) instead of bridge itself")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit 946019637ec9192450c685a61c589a9cbef7637b)

package/base-files/files/bin/config_generate

index b3752c5430870ecb540b033ea1b8a1eb15c0f87f..596fcf41fad5b21253d8f1fa74011a7387ffbdd9 100755 (executable)
@@ -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