Alan Pevec
2009-Jul-10 02:31 UTC
[Ovirt-devel] [PATCH node] display network interface driver name and MAC
to help identifying --- scripts/ovirt-config-networking | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/scripts/ovirt-config-networking b/scripts/ovirt-config-networking index aa04a7c..4007ec6 100755 --- a/scripts/ovirt-config-networking +++ b/scripts/ovirt-config-networking @@ -320,6 +320,11 @@ else printf "Configuring the network will destroy any existing networking\n" printf "configuration on this system.\n" printf "***** WARNING *****\n" + for nic in $NICS; do + driver=$(basename $(readlink /sys/class/net/$nic/device/driver)) + mac=$(cat /sys/class/net/$nic/address) + printf "%s\t%s\t%s\n" $nic $driver $mac + done DNS="DNS" NTP="NTP" -- 1.6.0.6
Alan Pevec
2009-Jul-10 02:37 UTC
[Ovirt-devel] [PATCH node] display network interface driver name and MAC
to help identifying --- scripts/ovirt-config-networking | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/scripts/ovirt-config-networking b/scripts/ovirt-config-networking index 2201369..14e845a 100755 --- a/scripts/ovirt-config-networking +++ b/scripts/ovirt-config-networking @@ -351,6 +351,11 @@ else printf "Configuring the network will destroy any existing networking\n" printf "configuration on this system.\n" printf "***** WARNING *****\n" + for nic in $NICS; do + driver=$(basename $(readlink /sys/class/net/$nic/device/driver)) + mac=$(cat /sys/class/net/$nic/address) + printf "%s\t%s\t%s\n" $nic $driver $mac + done DNS="DNS" NTP="NTP" -- 1.6.0.6