From 76602596e033d3f38c09abf6d7fdbbac2f12ea7b Mon Sep 17 00:00:00 2001 From: WANG Chao Date: Thu, 13 Jun 2013 10:06:27 +0800 Subject: [PATCH] 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 Acked-by: Baoquan He --- dracut-module-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dracut-module-setup.sh b/dracut-module-setup.sh index 428918c..87d0a20 100755 --- a/dracut-module-setup.sh +++ b/dracut-module-setup.sh @@ -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