From 91b40a13852f939613311b87dcadc49a612f33ff Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Wed, 25 Jan 2023 21:16:38 +0100 Subject: [PATCH] Fix factory default, untagged access ports Signed-off-by: Joachim Wiberg --- board/common/rootfs/lib/infix/swup | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/board/common/rootfs/lib/infix/swup b/board/common/rootfs/lib/infix/swup index 68c3c0c3..9dcfe6e6 100755 --- a/board/common/rootfs/lib/infix/swup +++ b/board/common/rootfs/lib/infix/swup @@ -59,7 +59,15 @@ ip link set lo group iface # outputs empty json objects for non-port group ifs ports=$(ip -json link show group port | jq -r '.[].ifname | select(length > 0)' | tr "\n" " ") if [ ! -f /etc/network/interfaces.d/br0 ] && [ -n "$ports" ]; then - cat <<-EOF >/etc/network/interfaces.d/br0 + touch /etc/network/interfaces.d/br0 + for port in $porst; do + cat <<-EOF + iface $port + bridge-access 1 + EOF + done + cat <<-EOF >>/etc/network/interfaces.d/br0 + auto br0 iface br0 bridge-ports $ports