ALT Linux Bugzilla
– Attachment 347 Details for
Bug 3696
better bonding devices support
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
better bonding devices support
net-scripts-0.3-bond.patch (text/plain), 1.92 KB, created by
Sergey Bolshakov
on 2004-02-13 19:20:20 MSK
(
hide
)
Description:
better bonding devices support
Filename:
MIME Type:
Creator:
Sergey Bolshakov
Created:
2004-02-13 19:20:20 MSK
Size:
1.92 KB
patch
obsolete
>diff -uNr net-scripts-0.3-zcip/sysconfig/network-scripts/ifup net-scripts-0.3/sysconfig/network-scripts/ifup >--- net-scripts-0.3-zcip/sysconfig/network-scripts/ifup 2004-02-13 18:11:48 +0200 >+++ net-scripts-0.3/sysconfig/network-scripts/ifup 2004-02-13 18:13:30 +0200 >@@ -128,10 +128,33 @@ > is_yes "$RECEIVEONLY" && RFLAG="-r" > > ifconfig "$DEVICE" down >- echo "Enslaving $DEVICE to $MASTER" >- "$IFENSLAVE" $RFLAG "$MASTER" "$DEVICE" >+ ifconfig $MASTER up >+ >+ # Check, if master needs additional configuration. It is required >+ # if it should be configured via DHCP but has no slaves yet. >+ if fakeMAC "$MASTER" && ! ifconfig $MASTER | fgrep -q "inet addr" >+ then >+ masterconf=yes >+ fi > >- exit 0 >+ echo "Enslaving $DEVICE to $MASTER" >+ if "$IFENSLAVE" $RFLAG "$MASTER" "$DEVICE"; then >+ # Remove unneeded routes >+ /sbin/route | awk "/$DEVICE\\$/ { print \\$1,\\$3 }" | >+ while read net mask; do >+ /sbin/route del -net $net netmask $mask dev $DEVICE >+ done >+ fi >+ >+ # If additional configuration of master is required, >+ # continue with master configuration, assuming >+ # configuration protocol dhcp, else exit >+ if [ -n "$masterconf" ]; then >+ DEVICE=$MASTER >+ DYNCONFIG=true >+ else >+ exit 0 >+ fi > fi > > # Now, run the specific script for Wireless LAN interfaces >diff -uNr net-scripts-0.3-zcip/sysconfig/network-scripts/network-functions net-scripts-0.3/sysconfig/network-scripts/network-functions >--- net-scripts-0.3-zcip/sysconfig/network-scripts/network-functions 2003-05-20 15:46:06 +0300 >+++ net-scripts-0.3/sysconfig/network-scripts/network-functions 2004-02-13 18:13:30 +0200 >@@ -109,3 +109,9 @@ > fi > fi > } >+ >+# This function reports if given device has fake (zero only) MAC address >+fakeMAC() { >+ test -z `ifconfig $1 | grep HWaddr | awk '{print $NF}' | tr -d ':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 3696
: 347