View | Details | Raw Unified | Return to bug 45226
Collapse All | Expand All

(-)file_not_specified_in_diff (-4 / +3 lines)
Line 92 Link Here
92
                              if [[ "${iface//[0-9]*/}" = "eth" || "${iface//[0-9]*/}" = "enp" ]]; then
92
                              if [ "${iface//[0-9]*/}" = "eth" ]; then
93
--
94
-- /etc/net/scripts/contrib/initconf   2023-02-10 14:02:55.232141663 +0000
93
++ write       2023-02-10 12:55:08.718191588 +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" || "${iface//[0-9]*/}" = "enp" ]]; then
92
                               if [ "${iface//[0-9]*/}" = "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

Return to bug 45226