In Gentoo, I use mii-diag and mii-tool to determine if a cable is plugged into my laptop's FE port, perhaps you could do something around that?
This is the code from the sample network config files in Gentoo if its of any help: <code snip> if mii-tool "${IFACE}" 2> /dev/null | grep -q 'no link'; then ewarn "No link on ${IFACE}, aborting configuration" return 1 fi </code snip>
Jim
On Thu, 2008-02-14 at 11:53 +0000, Barry Samuels wrote:
My MythTV box doesn't have a keyboard or monitor and could be moved between TV aerial points. It has two network cards so can connect via cable or wireless.
Is there any way, at boot time, to get it to try the cable interface first and then, perhaps after a given time, to try the wireless interface and to keep trying both interfaces until it does find a connection?