Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 251149 Details for
Bug 341657
sys-apps/openrc-0.6.3: can't set bonded connection mode when using sysfs
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Force interface down and also set bond mode *before* trying to set other configuration
bonding2.patch (text/plain), 850 bytes, created by
Ed Wildgoose
on 2010-10-18 17:42:11 UTC
(
hide
)
Description:
Force interface down and also set bond mode *before* trying to set other configuration
Filename:
MIME Type:
Creator:
Ed Wildgoose
Created:
2010-10-18 17:42:11 UTC
Size:
850 bytes
patch
obsolete
>--- /lib64/rc/net/bonding.sh.orig 2010-10-18 17:10:43.805511273 +0100 >+++ /lib64/rc/net/bonding.sh 2010-10-18 18:26:46.195657969 +0100 >@@ -46,11 +46,26 @@ > return 1 > fi > >+ # Must ensure bond is down before configuring >+ _down >+ > # Configure the bond. >- # Nice and dynamic :) >+ # Must configure bonding mode first >+ for x in /sys/class/net/"${IFACE}"/bonding/mode; do >+ [ -f "${x}" ] || continue >+ n=${x##*/} >+ eval s=\$${n}_${IFVAR} >+ if [ -n "${s}" ]; then >+ einfo "Setting ${n}: ${s}" >+ echo "${s}" >"${x}" || \ >+ eerror "Failed to configure $n (${n}_${IFVAR})" >+ fi >+ done >+ # Nice and dynamic for remaining options:) > for x in /sys/class/net/"${IFACE}"/bonding/*; do > [ -f "${x}" ] || continue > n=${x##*/} >+ [ "${n}" != "mode" ] || continue > eval s=\$${n}_${IFVAR} > if [ -n "${s}" ]; then > einfo "Setting ${n}: ${s}"
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 341657
:
251147
| 251149