ALT Linux Bugzilla
– Attachment 12495 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_etcnet_for_ens.diff (text/plain), 1.32 KB, created by
Николай Степаненко
on 2023-02-10 17:05:39 MSK
(
hide
)
Description:
менее грязный патч
Filename:
MIME Type:
Creator:
Николай Степаненко
Created:
2023-02-10 17:05:39 MSK
Size:
1.32 KB
patch
obsolete
>[root@host-15 ~]# /etc/net/scripts/contrib/initconf write >WARNING: /usr/sbin/ethtool is not available, module detection will be skipped >Processing interface 'lo': configuration exists >Processing interface 'enp0s3': finished >[root@host-15 ~]# diff /etc/net/scripts/contrib/initconf write >92c92 >< if [[ "${iface//[0-9]*/}" = "eth" || "${iface//[0-9]*/}" = "enp" ]]; then >--- >> if [ "${iface//[0-9]*/}" = "eth" ]; then >[root@host-15 ~]# diff -Naur /etc/net/scripts/contrib/initconf write >--- /etc/net/scripts/contrib/initconf 2023-02-10 14:02:55.232141663 +0000 >+++ write 2023-02-10 12:55:08.718191588 +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" || "${iface//[0-9]*/}" = "enp" ]]; then >+ if [ "${iface//[0-9]*/}" = "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