Line
Link Here
|
0 |
-- write 2023-02-10 12:55:08.718191588 +0000 |
0 |
++ /etc/net/scripts/contrib/initconf 2023-02-10 14:47:42.520544225 +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" =~ ^(en[a-z]|eth) ]]; then |
93 |
# find and use link-level address |
93 |
# find and use link-level address |
94 |
LLADDR=`$IP li sh dev $iface | fgrep 'link/ether' | sed 's/^ *link\/ether //' | cut --delimiter=' ' --fields=1` |
94 |
LLADDR=`$IP li sh dev $iface | fgrep 'link/ether' | sed 's/^ *link\/ether //' | cut --delimiter=' ' --fields=1` |
95 |
# ...and by valid MAC address |
95 |
# ...and by valid MAC address |