[openwrt/openwrt] base-files: fix typo in config_generate MAC check
LEDE Commits
lede-commits at lists.infradead.org
Mon Jun 21 23:39:32 PDT 2021
rmilecki pushed a commit to openwrt/openwrt.git, branch openwrt-21.02:
https://git.openwrt.org/74dbf3412bcef16d08cd1e7bed4e32a400c8fc11
commit 74dbf3412bcef16d08cd1e7bed4e32a400c8fc11
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: 125deb4d783e ("base-files: set MAC for bridge ports (devices) instead of bridge itself")
Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
(cherry picked from commit 946019637ec9192450c685a61c589a9cbef7637b)
---
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