Jonathan Davis wrote:
I'd like to be able to have hot plug behavior with my ethernet cable.
At the moment, I'm using dhcpcd along with the BLFS bootscripts. This
means that the computer runs dhcpcd for a fixed period of time, trying
to get an IP address. If it succeeds (like when the ethernet cable is
plugged in), it continues on its merry way and you have network
access. If it fails, then after that fixed period of time, it declares
failure and continues on its merry way and you DON'T have network
access.
What I want is to have network access whenever the ethernet cable is
plugged in (and of course no access when its not) - including the
ability to plug and unlpug the device multiple times since the
computer has booted, regardless of whether the cable was plugged in
when it was booted.
My initial attempt was to give dhcpcd the -t flag with an enormous
number, but since it isn't in the background, that just means that if
you don't have the cable plugged in, you sit around forever waiting
for the computer to finish booting (and effectively it never will).
My successive attempts have not been any better.
To get the appropriate hotplug behavior, do I need to get dhcpcd in
the background somehow, or do I need to change certain values in the
bootscripts, or do I need a separate program (such as d-bus or HAL or
something)?
Any help from those that know how to do deal with this problem would
be appreciated. Thanks.
- Jonathan Davis
_______________________________________________
Clfs-support mailing list
[email protected]
http://lists.cross-lfs.org/cgi-bin/mailman/listinfo/clfs-support
On my laptop, I had the same issue. If I wasn't plugged into the
network, my boot process would wait ~90sec or something trying to start
dhcpcd and then move on. I found the program ifplugd which works great.
It monitors the ethernet port for a live link and brings up the
connection if it finds it. Then if you unplug, it brings down the
interface. If I remember correctly, it took a little fiddling to get it
configured properly with LFS, but it works great now. Unfortunately, my
laptop is in the shop for another week or so, so I can't check it out
and give you specifics, but you should be able to get it going. Here is
a link:
http://0pointer.de/lennart/projects/ifplugd/
Hope that helps.
Joel
_______________________________________________
Clfs-support mailing list
[email protected]
http://lists.cross-lfs.org/cgi-bin/mailman/listinfo/clfs-support