From 9919d2806b31b5ae71d01b3f62899c5c07c96542 Mon Sep 17 00:00:00 2001 From: alexandrev-tibco Date: Sun, 31 Aug 2025 09:33:11 +0200 Subject: [PATCH] +1 --- manage-lxc-vm-notes.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manage-lxc-vm-notes.sh b/manage-lxc-vm-notes.sh index 32a80e5..a78671a 100755 --- a/manage-lxc-vm-notes.sh +++ b/manage-lxc-vm-notes.sh @@ -97,7 +97,7 @@ collect_lxc_summary() { # Prefer iproute2 global IPv4 addresses ip -o -4 addr show up scope global 2>/dev/null | awk "{print \$4}" || true; # Fallbacks - hostname -I 2>/dev/null || true; + hostname -i 2>/dev/null || true; ip -4 addr 2>/dev/null | awk "/inet /{print \$2}" || true; ifconfig 2>/dev/null | awk "/inet (addr:)?/{print \$2}" | sed "s/^addr://" || true; ip route get 1 2>/dev/null | awk "{for(i=1;i<=NF;i++) if (\$i==\"src\") print \$(i+1)}" || true;