Displaying 1 result from an estimated 1 matches for "klosterweg".
2007 Dec 03
1
Bug#437127: xen-utils-common: vif-common fails to identify ip address of ethernet device
I did some fine tuning on the command line, and this one should be
an even better alternative:
ip -4 -o addr show primary dev $1 | awk '$3 == "inet" {print $4; exit}' | sed 's!/.*!!'