Re: [gentoo-user] Re: net.eth0 device initiated services

2007-01-14 Thread Mick
On Thursday 11 January 2007 17:52, »Q« wrote:
 Neil Bothwick [EMAIL PROTECTED] wrote:
  you could emerge ifplugd, then the startup scripts won't try to
  initialise eth0 if no cable is detected.

 Is there something like this which will bring my wireless connection up
 or down depending on whether the device is found?  (My laptop has a
 hardware switch to turn the wireless card on/off).

I have a USB WiFi adaptor which is picked up and initialised by ifplugd 
everytime I plug it in.  I assume that the same will happen when you turn 
your wireless card on/off.

I am not sure what happens when I have both an ethernet cable plugged in and 
the WiFi adaptor.  I guess both will come up but which one is going to be 
used by applications to connect to the Internet?
-- 
Regards,
Mick


pgp4WyoksiDZY.pgp
Description: PGP signature


Re: [gentoo-user] Re: net.eth0 device initiated services

2007-01-14 Thread Neil Bothwick
On Sun, 14 Jan 2007 09:35:04 +, Mick wrote:

 I am not sure what happens when I have both an ethernet cable plugged
 in and the WiFi adaptor.  I guess both will come up but which one is
 going to be used by applications to connect to the Internet?

I use the preup() function in /etc/conf.d/net to take my wireless
interface down when the wired interface is brought up.

preup() {
if [ ${IFACE} == eth0 ]; then
/etc/init.d/net.eth1 --quiet status  /etc/init.d/net.eth1 
pause fi
return 0
}


-- 
Neil Bothwick

KPLA: Warrior's Radio! All the glory, all the time!


signature.asc
Description: PGP signature


[gentoo-user] Re: net.eth0 device initiated services

2007-01-11 Thread »Q«
Neil Bothwick [EMAIL PROTECTED] wrote:

 you could emerge ifplugd, then the startup scripts won't try to
 initialise eth0 if no cable is detected.

Is there something like this which will bring my wireless connection up
or down depending on whether the device is found?  (My laptop has a
hardware switch to turn the wireless card on/off).

-- 
gentoo-user@gentoo.org mailing list