Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [SOLVED] Re: [gentoo-user] starting wlan0 only when wireless is turned on
Date: Mon, 13 Dec 2010 07:28:21
Message-Id: 201012130726.43644.michaelkintzios@gmail.com
In Reply to: [SOLVED] Re: [gentoo-user] starting wlan0 only when wireless is turned on by Valmor de Almeida
1 On Monday 13 December 2010 07:05:20 Valmor de Almeida wrote:
2 > On 12/12/2010 04:46 PM, Alan McKinnon wrote:
3 > > Apparently, though unproven, at 23:34 on Sunday 12 December 2010, Valmor
4 > > de
5 > >
6 > > Almeida did opine thusly:
7 > >> On 12/12/2010 03:54 PM, Alan McKinnon wrote:
8 > >>> Apparently, though unproven, at 18:51 on Sunday 12 December 2010,
9 > >>> Valmor de
10 > >>>
11 > >>> Almeida did opine thusly:
12 > >>>> Hello,
13 > >>>>
14 > >>>> I would like to have net.wlan0 started only when the wireless card is
15 > >>>> switched on. I am using ifplugd for starting net.eth0 when an ethernet
16 > >>>> cable is plugged in. Is there a similar utility for net.wlan0? Ideally
17 > >>>> so that it is configurable in conjunction with ifplugd.
18 > >>>
19 > >>> Chuck all that net.* bullshit out the window and use wicd instead.
20 > >>
21 > >> Okay I am new to this wireless stuff. If I do
22 > >>
23 > >> -> emerge -vp wicd
24 > >>
25 > >> I get
26 > >>
27 > >> These are the packages that would be merged, in order:
28 > >>
29 > >> Calculating dependencies... done!
30 > >> [ebuild N ] net-wireless/wireless-tools-29 USE="nls -multicall" 0
31 > >> kB [ebuild N ] dev-python/dbus-python-0.83.0-r1 USE="-doc
32 > >> -examples -test" 483 kB
33 > >> [ebuild N ] dev-python/urwid-0.9.9.1 USE="-examples" 233 kB
34 > >> [ebuild N ] x11-misc/ktsuss-1.4 273 kB
35 > >> [ebuild N ] net-misc/wicd-1.7.0 USE="X gtk ncurses nls pm-utils
36 > >> (-ioctl) -libnotify" 402 kB
37 > >>
38 > >> Total: 5 packages (5 new), Size of downloads: 1,390 kB
39 > >>
40 > >> which will install wireless-tools. This does not mean I need to use it
41 > >> to configure my wireless net right?
42 > >
43 > > You are going to take the entirety of net.* except net.lo as installed by
44 > > baselayout/openrc/whatever and get rid of it. That stuff never worked
45 > > right for anything except servers with fixed IPs
46 > >
47 > >> I am asking this because I am using
48 > >> wpa_supplicant and in the /etc/conf.d/net config file, I can only use
49 > >> one or the other.
50 > >
51 > > Discard /etc/conf.d/net
52 > >
53 > > That's part of the thing you are getting rid of
54 > >
55 > >> Since wicd deals with both wired and wireless, should I also get rid of
56 > >> ifplugd?
57 > >
58 > > Yes.
59 > >
60 > > Just following the wicd docs and it will all work just fine
61 >
62 > Thank you very much. I don't know how this magic is happening since I
63 > had posted another message in this list on problems with wpa_supplicant
64 > and frequent dropouts during connection. I am now sending this e-mail
65 > with a wireless connection. For the record, what I had to do was:
66 >
67 > emerge --unmerge ifplugd wpa_supplicant
68 > rm /etc/wpa_supplicant/*.conf
69 > rm /etc/conf.d/net
70 > touch /etc/conf.d/net
71 > rm /etc/init.d/net.eth0
72 > rm /etc/init.d/net.wlan0
73 > emerge -av wicd
74 >
75 > emerge wicd
76 > /etc/init.d/wicd start
77 > rc-update add wicd boot
78 >
79 > reboot and check wired connection.
80 > disconnect, turn on wireless
81 > wicd-client -n
82
83 Interesting! Can wicd manage encryption WPA/WPA2 without wpa_supplicant?
84
85 --
86 Regards,
87 Mick

Attachments

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

Replies

Subject Author
Re: [SOLVED] Re: [gentoo-user] starting wlan0 only when wireless is turned on Neil Bothwick <neil@××××××××××.uk>