[WHEREAMI] Re: whereami, hibernate & ifconfig

Andrew McMillan andrew at catalyst.net.nz
Thu Oct 13 07:01:28 NZDT 2005


On Wed, 2005-10-12 at 12:45 -0300, Derek Broughton wrote:
> On Wednesday 12 October 2005 07:08, you wrote:
> 
> > # Always sleep 5 (with dummy location)
> > always sleep 5 dummy
> >
> > # Test for the presence of an ethernet connection plugged into eth0
> > testmii eth0 lan
> >
> >
> > Would something like that work?
> 
> Sorry, not quite.  It won't run the testmii after the sleep is successful, so 
> everything after that needs to be in a "if dummy" or "always".

Doh!

Yeah.  And, of course, the 'always' is not actually needed on _that_
one.  So the correct-ish solution is presumably:

sleep 5 dummy
always testmii eth0 lan

Also, does ethtool fail to detect the mii in the same way as mii-tool?

Cheers,
					Andrew.

-------------------------------------------------------------------------
Andrew @ Catalyst .Net .NZ  Ltd,  PO Box 11-053, Manners St,  Wellington
WEB: http://catalyst.net.nz/            PHYS: Level 2, 150-154 Willis St
DDI: +64(4)803-2201      MOB: +64(272)DEBIAN      OFFICE: +64(4)499-2267
     FORTUNE'S RULES TO LIVE BY: #2
                           Never goose a wolverine.
-------------------------------------------------------------------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.catalyst.net.nz/pipermail/whereami-discuss/attachments/20051013/61ffb3b8/attachment.pgp


More information about the whereami-discuss mailing list