Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: net.eth0 device initiated services
Date: Sun, 14 Jan 2007 10:48:14
Message-Id: 20070114104201.23f29e2f@krikkit.digimed.co.uk
In Reply to: Re: [gentoo-user] Re: net.eth0 device initiated services by Mick
1 On Sun, 14 Jan 2007 09:35:04 +0000, Mick wrote:
2
3 > I am not sure what happens when I have both an ethernet cable plugged
4 > in and the WiFi adaptor. I guess both will come up but which one is
5 > going to be used by applications to connect to the Internet?
6
7 I use the preup() function in /etc/conf.d/net to take my wireless
8 interface down when the wired interface is brought up.
9
10 preup() {
11 if [ ${IFACE} == "eth0" ]; then
12 /etc/init.d/net.eth1 --quiet status && /etc/init.d/net.eth1 pause fi
13 return 0
14 }
15
16
17 --
18 Neil Bothwick
19
20 KPLA: Warrior's Radio! All the glory, all the time!

Attachments

File name MIME type
signature.asc application/pgp-signature