[Ovirt-devel] [PATCH node] Changes how macs are collected by ovirt-early.

Alan Pevec apevec at gmail.com
Tue Mar 31 16:21:04 UTC 2009


just one more thing, then ACK

> +           mac=$(cat /sys/class/net/$device/address)
     mac=$(cat /sys/class/net/$device/address 2>/dev/null)

otherwise you get unnecessary error message where address doesn't exist e.g.
cat: /sys/class/net/bonding_masters/address: Not a directory




More information about the ovirt-devel mailing list