ALT Linux Bugzilla
– Attachment 19993 Details for
Bug 56710
Решение проблемы с обновлением ядра Linux и сетевыми интерфейсами
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
функция create-persistent-network-interface-names
create-persistent-network-interface-names.sh (text/x-sh), 445 bytes, created by
rsrs
on 2025-11-05 12:37:55 MSK
(
hide
)
Description:
функция create-persistent-network-interface-names
Filename:
MIME Type:
Creator:
rsrs
Created:
2025-11-05 12:37:55 MSK
Size:
445 bytes
patch
obsolete
>function create-persistent-network-interface-names () { > # Bind network interface names of ethernet to MAC addresses > ip -br link show | grep -E '^(en|eth)' | awk '{print $1}' | while read -r iface; do > local mac=$(ip -br link show "$iface" 2>/dev/null | awk '{print $3}') > [ -n "$mac" ] || continue > cat >/etc/systemd/network/10-$iface.link <<-EOF > [Match] > MACAddress=$mac > > [Link] > Name=$iface > EOF > done >}
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 Raw
Actions:
View
Attachments on
bug 56710
:
19981
|
19984
|
19991
| 19993 |
20032
|
20049
|
20050