Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 14367 Details for
Bug 24254
ifenslave ebuild for ethernet bonding
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to add support for bonding interfaces to /etc/init.d/net.*
net-startup-script-bonding.patch (text/plain), 1.15 KB, created by
Pat Lougheed
on 2003-07-11 01:18:30 UTC
(
hide
)
Description:
Patch to add support for bonding interfaces to /etc/init.d/net.*
Filename:
MIME Type:
Creator:
Pat Lougheed
Created:
2003-07-11 01:18:30 UTC
Size:
1.15 KB
patch
obsolete
>--- /home/pat/net.eth0 2003-07-11 00:46:08.000000000 -0700 >+++ /etc/init.d/net.eth0 2003-07-11 01:13:24.000000000 -0700 >@@ -27,6 +27,7 @@ > inet6_IFACE="$(eval echo \$\{inet6_${IFACE}\})" > alias_IFACE="$(eval echo \$\{alias_${IFACE}\})" > status_IFACE="$(ifconfig | gawk -v IFACE="${IFACE}" '/Link/ { if ($1 == IFACE) print "up" }')" >+ slaves_IFACE="$(eval echo \$\{slaves_${IFACE}\})" > } > > start() { >@@ -62,6 +63,24 @@ > fi > eend 0 > >+ if [ -n "${slaves_IFACE}" ] >+ then >+ ebegin " Binding slave interfaces" >+ >+ if [ -x /sbin/ifenslave ] >+ then >+ /sbin/ifenslave ${IFACE} ${slaves_IFACE} >/dev/null || { >+ retval=$? >+ eend ${retval} "Failed to bind slave interfaces ${slaves_IFACE}" >+ return ${retval} >+ } >+ else >+ eend 1 "ifenslave not installed." >+ fi >+ >+ fi >+ eend 0 >+ > if [ -n "${alias_IFACE}" ] > then > local x="" >@@ -161,6 +180,15 @@ > done > fi > >+ if [ -n "${slaves_IFACE}" ] >+ then >+ if [ -x /sbin/ifenslave ] >+ then >+ local i="$(eval echo \$\{slaves_IFACE\} \| tr \' \' \'\\n\' \| grep eth \| tr \'\\n\' \' \')" >+ /sbin/ifenslave -d ${IFACE} ${i} >/dev/null >+ fi >+ fi >+ > if [ "${iface_IFACE}" = "dhcp" ] > then > local count=0
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 24254
: 14367