<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 2010-07-08, at 15:54 , Daniel Hedlund wrote:</div><blockquote type="cite"><div><font class="Apple-style-span" color="#000000"><br></font>I'm assuming that the you don't have any programs that are monitoring<br>the wired network interface for changes in state; it's just a static<br>IP address that has been created with ifconfig/ip and is never removed<br>or brought down automatically.<br></div></blockquote><div><br></div><div>Yup. We have our own scripts that set-and-forget the network config.</div><br><blockquote type="cite"><div>Are you running any particular distribution/project on the embedded<br>device? I'm not sure what tools are available to you, but check if<br>'ifplugd' is availabl. It's designed to detect and configure devices<br>when the cable is plugged in and unconfigure it when unplugged. In<br>newer desktop-based distros, ifplugd has been mostly superseded by<br>NetworkManager which I assume won't be available.<font class="Apple-style-span" color="#000000"><font class="Apple-style-span" color="#144FAE"><br></font></font></div></blockquote><div><br></div>We use LTIB from Freescale to produce what is essentially a custom build. I don't see a package for ifplugd, but I can probably build it and install it as needed.</div><div><br></div><div><blockquote type="cite"><div>If you can't find ifplugd, perhaps you can create a script that<br>monitors the network status via ethtool the /sys filesystem (depending<br>on kernel version):<br>/sys/class/net/<DEVICE>/carrier ("0" or "1")<br>/sys/class/net/<DEVICE>/operstate ("up", "down" or "unknown")<br></div></blockquote><div><br></div><div>Thank for the pointer to those! I'd been looking under /sys/platform/<NIC>. Would you happen to know how to get udev to respond to changes in the operstate? That would essentially do the trick: a udev rule to trigger a script whenever the link state changes.</div><div><br></div><div>-kms</div><div><br></div></div><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">--</div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Kareem Shehata<br><a href="mailto:kshehata-XAaQGU7qChDQT0dZR+AlfA@public.gmane.org">kshehata-XAaQGU7qChDQT0dZR+AlfA@public.gmane.org</a><br>Aeryon Labs Inc<br>519-489-6726 x254</div></span></span>
</div>
<br></body></html>