* [gentoo-user] Choosing wired or wireless at boot time
@ 2011-08-01 13:15 José Romildo Malaquias
2011-08-01 20:38 ` Canek Peláez Valdés
0 siblings, 1 reply; 3+ messages in thread
From: José Romildo Malaquias @ 2011-08-01 13:15 UTC (permalink / raw
To: gentoo-user
Hello.
I have two network interfaces on my notebook: one wired (eth0) and one
wireless (wlan0). I am running ~amd64 on it.
I want two gentoo boot entries in grub: one (the default softlevel)
which starts wired networking (and not wireless), and another that
starts the wireless network (and not the wired).
For the later I have created a new softlevel named wireless, with all
services from default, except net.eth0. The default has net.eth0, but
not net.wlan0. Booting with default works as expected, but booting with
wireless starts both interfaces.
In /etc/rc.conf I have the lines:
rc_depend_strict="NO"
rc_hotplug="!net*"
Any clues?
Romildo
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] Choosing wired or wireless at boot time
2011-08-01 13:15 [gentoo-user] Choosing wired or wireless at boot time José Romildo Malaquias
@ 2011-08-01 20:38 ` Canek Peláez Valdés
2011-08-01 21:07 ` Mick
0 siblings, 1 reply; 3+ messages in thread
From: Canek Peláez Valdés @ 2011-08-01 20:38 UTC (permalink / raw
To: gentoo-user
2011/8/1 José Romildo Malaquias <j.romildo@gmail.com>:
> Hello.
>
> I have two network interfaces on my notebook: one wired (eth0) and one
> wireless (wlan0). I am running ~amd64 on it.
>
> I want two gentoo boot entries in grub: one (the default softlevel)
> which starts wired networking (and not wireless), and another that
> starts the wireless network (and not the wired).
>
> For the later I have created a new softlevel named wireless, with all
> services from default, except net.eth0. The default has net.eth0, but
> not net.wlan0. Booting with default works as expected, but booting with
> wireless starts both interfaces.
>
> In /etc/rc.conf I have the lines:
>
> rc_depend_strict="NO"
> rc_hotplug="!net*"
>
> Any clues?
This is for a laptop? Do you use a desktop environment? If that's the
case, why don't you use NetworkManager or ConnMan, and forget about
having to do black script magic to set up your network dynamically?
I'm genuinely curious, I just want to understand why someone would go
through the pain of something like this, when there are several tools
already that just work automatically.
In my laptop I use NetworkManager, and besides I suspend all the time.
I've been in five different countries the last month and a half, and
I've been connecting to different networks all the time (wireless and
wired), and NetworkManager just works. I don't have to do anything,
just plug the ethernet cable or select the wireless network, set the
WEP/WPA key, and that's it.
Maybe you have a really wild or weird use case, but then I'm really
curious: Why do you want yo set up a different softlevel just to
change between wired and wireless networks?
Regards.
--
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] Choosing wired or wireless at boot time
2011-08-01 20:38 ` Canek Peláez Valdés
@ 2011-08-01 21:07 ` Mick
0 siblings, 0 replies; 3+ messages in thread
From: Mick @ 2011-08-01 21:07 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: Text/Plain, Size: 1956 bytes --]
On Monday 01 Aug 2011 21:38:41 Canek Peláez Valdés wrote:
> 2011/8/1 José Romildo Malaquias <j.romildo@gmail.com>:
> > Hello.
> >
> > I have two network interfaces on my notebook: one wired (eth0) and one
> > wireless (wlan0). I am running ~amd64 on it.
> >
> > I want two gentoo boot entries in grub: one (the default softlevel)
> > which starts wired networking (and not wireless), and another that
> > starts the wireless network (and not the wired).
> >
> > For the later I have created a new softlevel named wireless, with all
> > services from default, except net.eth0. The default has net.eth0, but
> > not net.wlan0. Booting with default works as expected, but booting with
> > wireless starts both interfaces.
> >
> > In /etc/rc.conf I have the lines:
> >
> > rc_depend_strict="NO"
> > rc_hotplug="!net*"
> >
> > Any clues?
>
> This is for a laptop? Do you use a desktop environment? If that's the
> case, why don't you use NetworkManager or ConnMan, and forget about
> having to do black script magic to set up your network dynamically?
>
> I'm genuinely curious, I just want to understand why someone would go
> through the pain of something like this, when there are several tools
> already that just work automatically.
>
> In my laptop I use NetworkManager, and besides I suspend all the time.
> I've been in five different countries the last month and a half, and
> I've been connecting to different networks all the time (wireless and
> wired), and NetworkManager just works. I don't have to do anything,
> just plug the ethernet cable or select the wireless network, set the
> WEP/WPA key, and that's it.
>
> Maybe you have a really wild or weird use case, but then I'm really
> curious: Why do you want yo set up a different softlevel just to
> change between wired and wireless networks?
sys-apps/ifplugd will bring up eth0 only if a cable is plugged in.
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-08-01 21:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-01 13:15 [gentoo-user] Choosing wired or wireless at boot time José Romildo Malaquias
2011-08-01 20:38 ` Canek Peláez Valdés
2011-08-01 21:07 ` Mick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox