How to detect ethernet connection
news at pointerstop.ca
Tue Jul 18 13:09:50 UTC 2006
How, on a Kubuntu system, can one reliably tell if _any_ ethernet connection
leafnode (a minimal NNTP server) checks "ifplugstatus" (I'm not sure if it
does that stock, or if I added it):
ifplugstatus | grep -e "eth.: link" >/dev/null && fetchnews
This is functional, but requires me to have a daemon installed that I
otherwise have no use for (though this exercise has at least shown me that
my connections are no longer numbered the way I always thought they were -
eth0 is now eth1 and vice versa).
hal has apparently not got the right information - kde-hal-device-manager
tells me that net.interface_up is false for both interfaces.
More information about the kubuntu-users