Ah, perfect! This did what I wanted. Thanks!
For the curious, I added this:
---< snip >---
#! /bin/sh
HAVELINK=$(mii-tool eth0 | grep "no link")
if [ -z "$HAVELINK" ]; then
echo eth0-link
else
echo eth0-nolink
fi
exit 0
---< snip >---
Then I set up a mapping in /etc/network/interfaces f
* On Tue, Nov 20, 2001 at 06:33:16AM -0800, David Roundy ([EMAIL PROTECTED])
wrote:
>
> On Tue, Nov 20, 2001 at 07:35:32AM -0500, Andrew M. Davenport wrote:
> > Unfortunately you can't really ping a remote host until after you have
> > configured the interface, which is what I want to avoid.
>
On Tue, Nov 20, 2001 at 07:35:32AM -0500, Andrew M. Davenport wrote:
> Unfortunately you can't really ping a remote host until after you have
> configured the interface, which is what I want to avoid.
You could use mii-tool, which when run without arguments returns false if
there is no wire plug
Unfortunately you can't really ping a remote host until after you have
configured the interface, which is what I want to avoid.
-Andrew
On Tue, Nov 20, 2001 at 01:37:39AM -0800, Osamu Aoki wrote:
> On Mon, Nov 19, 2001 at 10:50:54AM -0500, Andrew M. Daven
On Mon, Nov 19, 2001 at 10:50:54AM -0500, Andrew M. Davenport wrote:
> Is there any way to do the equivalent in Linux? (ie. - detect whether the
> ethernet card has link and just don't even try to DHCP if it doesn't?)
ping some host and use script to respond?
>
--
~\^o^/~~~ ~\^.^/~~~ ~\^*^/~~~
I have a notebook running Debian which is frequently connected to any of
several networks, all of which provide DHCP for network configuration.
However some of these networks are wired (connected via the built-in
ethernet port, which uses the eepro100 driver) and some are wireless (using
a Linksys
6 matches
Mail list logo