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! |