Fedora network adapter name

[ERROR] WSREP: Failed to read output of: ‘/sbin/ifconfig | grep -m1 -1 -E ‘^[a-z]?eth[0-9]’ | tail -n 1 | awk ‘{ print $2 }’ | awk -F : ‘{ print $2 }’’

What if my network adapter has em0, wlan1 or vmnet1 name? How can I change it in your start script?