dracut-module-setup.sh: cleanup - use kdump_get_mac_addr() function

We forget to use kdump_get_mac_addr() in this case. So fix it.

Signed-off-by: WANG Chao <chaowang@redhat.com>
Acked-by: Baoquan He <bhe@redhat.com>
This commit is contained in:
WANG Chao 2013-06-13 10:06:27 +08:00 committed by Baoquan He
parent 7b19ef79c3
commit 76602596e0

View File

@ -189,7 +189,7 @@ kdump_setup_netdev() {
kdump_setup_znet $_netdev
fi
_netmac=`ip addr show $_netdev 2>/dev/null|awk '/ether/{ print $2 }'`
_netmac=$(kdump_get_mac_addr $_netdev)
_static=$(kdump_static_ip $_netdev)
if [ -n "$_static" ]; then
_proto=none