Line
Link Here
|
0 |
-- /etc/net/scripts/contrib/initconf.unmod 2022-07-28 14:32:29.000000000 +0000 |
0 |
++ /etc/net/scripts/contrib/initconf 2023-02-09 11:33:48.812661019 +0000 |
Lines 89-95
Link Here
|
89 |
esac |
89 |
esac |
90 |
fi |
90 |
fi |
91 |
# many others try to look as ethernet, so let's filter by iface name... |
91 |
# many others try to look as ethernet, so let's filter by iface name... |
92 |
if [ "${iface//[0-9]*/}" = "eth" ]; then |
92 |
#if [ "${iface//[0-9]*/}" = "eth" ]; then |
|
|
93 |
if [ "${iface}" = "enp4s0" ]; then |
93 |
# find and use link-level address |
94 |
# find and use link-level address |
94 |
LLADDR=`$IP li sh dev $iface | fgrep 'link/ether' | sed 's/^ *link\/ether //' | cut --delimiter=' ' --fields=1` |
95 |
LLADDR=`$IP li sh dev $iface | fgrep 'link/ether' | sed 's/^ *link\/ether //' | cut --delimiter=' ' --fields=1` |
95 |
# ...and by valid MAC address |
96 |
# ...and by valid MAC address |