Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 79597 Details for
Bug 122521
udhcpc-ifconfig always takes down network interface even when the new ip/netmask is same as the old.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fixes udhcpc-ifconfig
udhcpc-ifconfig.patch (text/plain), 902 bytes, created by
Roy Marples (RETIRED)
on 2006-02-12 12:16:33 UTC
(
hide
)
Description:
fixes udhcpc-ifconfig
Filename:
MIME Type:
Creator:
Roy Marples (RETIRED)
Created:
2006-02-12 12:16:33 UTC
Size:
902 bytes
patch
obsolete
>--- lib/rcscripts/net.modules.d/helpers.d/udhcpc-ifconfig (revision 1866) >+++ /lib/rcscripts/net.modules.d/helpers.d/udhcpc-ifconfig (working copy) >@@ -37,7 +37,7 @@ > > # If the current address does not match or we are deconfiguring > # then we take the all the addresses on the interface down >-cur=$( ifconfig ${interface} | grep 'inet ' | awk -F: '{ print $2,$3 }' | awk '{ print $1,$3 }' ) >+cur=$( ifconfig ${interface} | grep 'inet ' | awk -F: '{ print $2,$4 }' | awk '{ print $1,$3 }' ) > if [[ ${cur} != "${ip} ${subnet}" || ${action} == deconfig ]]; then > # Remove all aliases > for i in $( ifconfig | grep -o "^${interface}:[0-9]*" | tac | xargs ); do >@@ -68,7 +68,7 @@ > # Configure our routers > for r in ${router}; do > while true; do >- /sbin/route del 0.0.0.0 2>/dev/null || break >+ /sbin/route del default 2>/dev/null || break > done > > # We can only have one default route!
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 122521
: 79597