blob: 6565d1c68c76d430f3bea8ff70fe7e076b30d596 (
plain)
1
2
3
4
5
6
|
#!/bin/sh -e
#
# Script used to determine physical interface of vhost0
mac=$(cat /sys/class/net/vhost0/address)
vif --list | awk -v mac=$mac 'BEGIN { RS="\n\n" }; $3 != "vhost0" && $0 ~ "HWaddr:" mac { print $3; exit 0 }'
|