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