From 437961a6440ac77076c8ecd1f0a8ee5191ebc99c Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Thu, 9 Feb 2023 08:50:13 +0100 Subject: [PATCH] board/common: Keep static /etc/iproute2/group This way we don't have to patch it at every boot. --- board/common/rootfs/etc/iproute2/group | 2 ++ board/common/rootfs/lib/infix/swup | 9 --------- 2 files changed, 2 insertions(+), 9 deletions(-) create mode 100644 board/common/rootfs/etc/iproute2/group diff --git a/board/common/rootfs/etc/iproute2/group b/board/common/rootfs/etc/iproute2/group new file mode 100644 index 00000000..6da90e5e --- /dev/null +++ b/board/common/rootfs/etc/iproute2/group @@ -0,0 +1,2 @@ +1 port +2 iface diff --git a/board/common/rootfs/lib/infix/swup b/board/common/rootfs/lib/infix/swup index 5e2e6da3..06154e97 100755 --- a/board/common/rootfs/lib/infix/swup +++ b/board/common/rootfs/lib/infix/swup @@ -29,15 +29,6 @@ for netif in /sys/class/net/*; do num=$((num + 1)) done -# Verify that the 'port' and 'iface' groups exists -[ -d /etc/iproute2 ] || mkdir -p /etc/iproute2 -if ! grep -q port /etc/iproute2/group; then - echo "1 port" >> /etc/iproute2/group -fi -if ! grep -q iface /etc/iproute2/group; then - echo "2 iface" >> /etc/iproute2/group -fi - # Find and mark all switch ports ports=$(devlink port 2>/dev/null | awk '/flavour physical/{print $5}') for iface in $ports; do