From 2a8944557062ca6884f0fb49d7a3b9780c85ebcd Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Mon, 16 Jan 2023 19:13:08 +0100 Subject: [PATCH] board/common: default to show group 'iface' in show iface command Signed-off-by: Joachim Wiberg --- board/common/rootfs/bin/show | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/common/rootfs/bin/show b/board/common/rootfs/bin/show index b004a807..b90cf14b 100755 --- a/board/common/rootfs/bin/show +++ b/board/common/rootfs/bin/show @@ -74,6 +74,8 @@ ifaces() printf "\e[7mINTERFACE STATE ADDRESS \e[0m\n" if [ -n "$all" ]; then ip $opt addr show + elif grep -q iface /etc/iproute2/group; then + ip $opt addr show group iface else ip $opt addr show |awk '{ if ($1 !~ /eth[0-9]*/ && $1 !~ /.*@NONE/) { print }}' fi