[root@host-15 ~]# /etc/net/scripts/contrib/initconf write WARNING: /usr/sbin/ethtool is not available, module detection will be skipped Processing interface 'lo': configuration exists Processing interface 'enp0s3': finished [root@host-15 ~]# diff /etc/net/scripts/contrib/initconf write 92c92 < if [[ "${iface//[0-9]*/}" = "eth" || "${iface//[0-9]*/}" = "enp" ]]; then --- > if [ "${iface//[0-9]*/}" = "eth" ]; then [root@host-15 ~]# diff -Naur /etc/net/scripts/contrib/initconf write --- /etc/net/scripts/contrib/initconf 2023-02-10 14:02:55.232141663 +0000 +++ write 2023-02-10 12:55:08.718191588 +0000 @@ -89,7 +89,7 @@ esac fi # many others try to look as ethernet, so let's filter by iface name... - if [[ "${iface//[0-9]*/}" = "eth" || "${iface//[0-9]*/}" = "enp" ]]; then + if [ "${iface//[0-9]*/}" = "eth" ]; then # find and use link-level address LLADDR=`$IP li sh dev $iface | fgrep 'link/ether' | sed 's/^ *link\/ether //' | cut --delimiter=' ' --fields=1` # ...and by valid MAC address