Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 272679 Details for
Bug 366653
sys-apps/openrc - "/lib/rc/net/bonding.sh: line 106: echo: write error: Device or resource busy"
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
add a check before adding an interface as a slave
bonding.patch (text/x-patch), 704 bytes, created by
Kfir Lavi
on 2011-05-09 22:00:08 UTC
(
hide
)
Description:
add a check before adding an interface as a slave
Filename:
MIME Type:
Creator:
Kfir Lavi
Created:
2011-05-09 22:00:08 UTC
Size:
704 bytes
patch
obsolete
>--- /lib/rc/net/bonding.sh.orig 2011-05-10 00:51:07.429000088 +0300 >+++ /lib/rc/net/bonding.sh 2011-05-10 00:51:11.110000089 +0300 >@@ -97,12 +97,14 @@ > # finally add in slaves > eoutdent > if [ -d /sys/class/net ]; then >+ sys_bonding_path=/sys/class/net/"${IFACE}"/bonding > if [ -n "${primary}" ]; then >- echo "${primary}" >/sys/class/net/"${IFACE}"/bonding/primary >+ echo "${primary}" >$sys_bonding_path/primary > slaves="${slaves/${primary}/}" > fi > for s in ${slaves}; do >- echo "+${s}" >/sys/class/net/"${IFACE}"/bonding/slaves >+ grep -q ${s} $sys_bonding_path/slaves \ >+ || echo "+${s}" >$sys_bonding_path/slaves > done > else > /sbin/ifenslave "${IFACE}" ${slaves} >/dev/null
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 366653
:
272679
|
273429