Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 71778 Details for
Bug 110956
Could not bring up net.eth0 with static ips after --update
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fixes the above issue
ifconfig.patch (text/plain), 1.19 KB, created by
Roy Marples (RETIRED)
on 2005-10-31 01:10:18 UTC
(
hide
)
Description:
Fixes the above issue
Filename:
MIME Type:
Creator:
Roy Marples (RETIRED)
Created:
2005-10-31 01:10:18 UTC
Size:
1.19 KB
patch
obsolete
>Index: ifconfig >=================================================================== >--- ifconfig (revision 1588) >+++ ifconfig (working copy) >@@ -319,9 +319,9 @@ > # > # Adds the given address to the interface > ifconfig_add_address() { >- local iface="$1" i=0 r e >+ local iface="$1" i=0 r e real_iface=$(interface_device "$1") > >- ifconfig_exists "${iface}" true || return 1 >+ ifconfig_exists "${real_iface}" true || return 1 > > # Extract the config > local -a config=( "$@" ) >@@ -357,18 +357,18 @@ > fi > > # Ensure that the interface is up so we can add IPv6 addresses >- interface_up "${iface}" >+ interface_up "${real_iface}" > > # Some kernels like to apply lo with an address when they are brought up > if [[ ${iface} == "lo" && ${config[@]} == "127.0.0.1 netmask 255.0.0.0 broadcast 127.255.255.255" ]]; then > ifconfig "${iface}" 0.0.0.0 > fi >- >+ > ifconfig "${iface}" ${config[@]} > r="$?" > [[ ${r} != "0" ]] && return ${r} > >- local metric ifvar=$( bash_variable "${iface}" ) >+ local metric ifvar=$(bash_variable "${real_iface}") > # Remove the newly added route and replace with our metric > eval metric=\"\$\{metric_${ifvar}\}\" > [[ ${metric} == "0" || ${RC_AUTO_INTERFACE} != "yes" ]] && return ${r}
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 110956
: 71778