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:
parent
7b19ef79c3
commit
76602596e0
@ -189,7 +189,7 @@ kdump_setup_netdev() {
|
|||||||
kdump_setup_znet $_netdev
|
kdump_setup_znet $_netdev
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_netmac=`ip addr show $_netdev 2>/dev/null|awk '/ether/{ print $2 }'`
|
_netmac=$(kdump_get_mac_addr $_netdev)
|
||||||
_static=$(kdump_static_ip $_netdev)
|
_static=$(kdump_static_ip $_netdev)
|
||||||
if [ -n "$_static" ]; then
|
if [ -n "$_static" ]; then
|
||||||
_proto=none
|
_proto=none
|
||||||
|
Loading…
Reference in New Issue
Block a user