View Single Post

  #5 (permalink)  
Old 12-01-2004
Osiris
 
Posts: n/a
Default Re: How to know if the cable is connected to the interface

James Knott <james.knott@rogers.com> wrote in
news:UvCdnR_fs_DcfTTcRVn-qA@rogers.com:


Thanks for all the precious info

What is the usual doc/howto to read to get a multiprofile boot up ?


> Osiris wrote:
>
>> Hi,
>> I'd like to know if there is a way to know whether the cable is
>> connected to my interface. The aim is to detect it at startup so as
>> to know if I need eth0 set up or not (on a laptop), in which case (if
>> not needed) only the wifi card is set up.
>>
>> In fact the problem is that if the wifi card AND the eth0 interface
>> are both set up, I cannot use the wifi card, even if the cable is not
>> plugged to the eth0 interface.
>>
>> My route says that the default gw is wlan0, but eth0 is set first.
>> Any idea ?

>
> You could write a script to turn down one interface and bring up the
> other. Another possibility, is to use profiles. You'd create a
> profile for each configuration. You can then switch profiles at any
> time, or even at boot up.
>
>



Reply With Quote