Re: Detecting Network connections...

2001-11-20 Thread Andrew M. Davenport
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

Re: Detecting Network connections...

2001-11-20 Thread Hugo Graumann
* 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. >

Re: Detecting Network connections...

2001-11-20 Thread David Roundy
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

Re: Detecting Network connections...

2001-11-20 Thread Andrew M. Davenport
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

Re: Detecting Network connections...

2001-11-20 Thread Osamu Aoki
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^/~~~ ~\^.^/~~~ ~\^*^/~~~