board/common: default to show group 'iface' in show iface command

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2023-01-16 19:15:40 +01:00
parent 59a2abb203
commit 2a89445570
+2
View File
@@ -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