ALT Linux Bugzilla
– Attachment 12497 Details for
Bug 45226
initconf: не сохраняет текущий конфиг в /etc/net/ifaces для типа сетевой карты с именем, отличным от eth*
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Исправление для определения типа сетевого интерфейса по имени
patch.diff (text/plain), 773 bytes, created by
Николай Степаненко
on 2023-02-10 17:49:49 MSK
(
hide
)
Description:
Исправление для определения типа сетевого интерфейса по имени
Filename:
MIME Type:
Creator:
Николай Степаненко
Created:
2023-02-10 17:49:49 MSK
Size:
773 bytes
patch
obsolete
>--- write 2023-02-10 12:55:08.718191588 +0000 >+++ /etc/net/scripts/contrib/initconf 2023-02-10 14:47:42.520544225 +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" ]; then >+ if [[ "$iface" =~ ^(en[a-z]|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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 45226
:
12477
|
12494
|
12495
| 12497