Summary: | /etc/init.d/net.eth0 checks interface status | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Andreas Jellinghaus <aj> |
Component: | [OLD] Core system | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | flash3001, mark, radek |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 43969 |
Description
Andreas Jellinghaus
2004-03-08 01:34:56 UTC
Relates to #44013 This is #44013 :-) I'ld like to propose the following solution to the problem which works just fine for me (saw something similar in a different bug report I'm not able to find any more): init.d/net.eth0,v 1.37 before: status_IFACE="$(ifconfig ${1} 2>${devnull} | gawk '$1 == "UP" {print "up"}')" init.d/net.eth0,v 1.37 after: status_IFACE="$(ifconfig ${1} 2>${devnull} | gawk '/addr:/{a=1}/ UP /{ if (a == 1) print "up" }')" With this patch an interface is only considered to be up if ifconfig reports UP and an address. Please note that Bug 34484 reports the very same problem. I found the bug again I was referencing to. It is Bug 28362 and it is the very same problem. this has been fixed |