Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 20807 Details for
Bug 33272
baselayout 1.8.6.12 can't start net.eth0 anymore
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix net.eth0 carrier detection
net.eth0.patch (text/plain), 889 bytes, created by
Jason Rhinelander
on 2003-11-16 00:35:15 UTC
(
hide
)
Description:
Patch to fix net.eth0 carrier detection
Filename:
MIME Type:
Creator:
Jason Rhinelander
Created:
2003-11-16 00:35:15 UTC
Size:
889 bytes
patch
obsolete
>--- /etc/init.d/net.eth0.orig 2003-11-16 00:06:09.027093733 -0800 >+++ /etc/init.d/net.eth0 2003-11-16 00:27:41.748100274 -0800 >@@ -33,7 +33,6 @@ > 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" }')" >- carrier_IFACE="$(ifconfig | gawk -v IFACE="${iface}" '/RUNNING/ { if ($1 == IFACE) print "running" }')" > vlans="$(eval echo \$\{iface_${IFACE}_vlans\})" > } > >@@ -63,7 +62,9 @@ > if [ "${status_IFACE}" != "up" ] > then > # Check that the interface has a carrier >- if [ "${carrier_IFACE}" = "running" ] >+ # The interface has to be up before we can check that it has a carrier >+ /sbin/ifconfig ${IFACE} up >+ if ifconfig eth0 | grep RUNNING >/dev/null > then > /sbin/dhcpcd ${dhcpcd_IFACE} ${IFACE} >/dev/null || { > retval=$?
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 33272
:
20807
|
20812
|
20832
|
20905
|
20935
|
21458