Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 336774 Details for
Bug 453494
>=sys-fs/udev-197: Document the change in interface name swapping for pre-197 rule file 70-persistent-net.rules
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
ethX_rename
rename_ethX.sh (text/plain), 691 bytes, created by
Alexander Tsoy
on 2013-01-24 22:19:05 UTC
(
hide
)
Description:
ethX_rename
Filename:
MIME Type:
Creator:
Alexander Tsoy
Created:
2013-01-24 22:19:05 UTC
Size:
691 bytes
patch
obsolete
>#!/sbin/runscript > ># Run this before 70-persistent-net.rules to allow swapping to eth* ># ># OpenRC, example: rc-update add $script_name sysinit ># ># Then you can use rules like, example: ># ># SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="bc:ae:c5:59:5a:85", NAME="eth0" ># SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="bc:ae:c5:59:5a:fd", NAME="eth1" ># ># You need to have sys-apps/iproute2 installed. > >description="Renames ethX to ethXtmp to avoid udev rename conflicts" > >depend() { > before dev > need sysfs > need modules >} > >start() { > local i > for i in /sys/class/net/eth* ; do > [ "$i" = "/sys/class/net/eth*" ] && continue > ip link set dev ${i##*/} name ${i##*/}tmp 2>/dev/null > 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 453494
:
336566
|
336568
|
336570
|
336574
|
336766
| 336774 |
338090
|
342056
|
342068