1 |
On Monday 01 Aug 2011 21:38:41 Canek Peláez Valdés wrote: |
2 |
> 2011/8/1 José Romildo Malaquias <j.romildo@×××××.com>: |
3 |
> > Hello. |
4 |
> > |
5 |
> > I have two network interfaces on my notebook: one wired (eth0) and one |
6 |
> > wireless (wlan0). I am running ~amd64 on it. |
7 |
> > |
8 |
> > I want two gentoo boot entries in grub: one (the default softlevel) |
9 |
> > which starts wired networking (and not wireless), and another that |
10 |
> > starts the wireless network (and not the wired). |
11 |
> > |
12 |
> > For the later I have created a new softlevel named wireless, with all |
13 |
> > services from default, except net.eth0. The default has net.eth0, but |
14 |
> > not net.wlan0. Booting with default works as expected, but booting with |
15 |
> > wireless starts both interfaces. |
16 |
> > |
17 |
> > In /etc/rc.conf I have the lines: |
18 |
> > |
19 |
> > rc_depend_strict="NO" |
20 |
> > rc_hotplug="!net*" |
21 |
> > |
22 |
> > Any clues? |
23 |
> |
24 |
> This is for a laptop? Do you use a desktop environment? If that's the |
25 |
> case, why don't you use NetworkManager or ConnMan, and forget about |
26 |
> having to do black script magic to set up your network dynamically? |
27 |
> |
28 |
> I'm genuinely curious, I just want to understand why someone would go |
29 |
> through the pain of something like this, when there are several tools |
30 |
> already that just work automatically. |
31 |
> |
32 |
> In my laptop I use NetworkManager, and besides I suspend all the time. |
33 |
> I've been in five different countries the last month and a half, and |
34 |
> I've been connecting to different networks all the time (wireless and |
35 |
> wired), and NetworkManager just works. I don't have to do anything, |
36 |
> just plug the ethernet cable or select the wireless network, set the |
37 |
> WEP/WPA key, and that's it. |
38 |
> |
39 |
> Maybe you have a really wild or weird use case, but then I'm really |
40 |
> curious: Why do you want yo set up a different softlevel just to |
41 |
> change between wired and wireless networks? |
42 |
|
43 |
sys-apps/ifplugd will bring up eth0 only if a cable is plugged in. |
44 |
|
45 |
-- |
46 |
Regards, |
47 |
Mick |