Gentoo Archives: gentoo-user

From: Jerry McBride <mcbrides9@×××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Wireless question...
Date: Mon, 08 Oct 2007 20:17:34
Message-Id: 20071008160215.725ce610@spyro.my.domain
In Reply to: [gentoo-user] Wireless question... by Jerry McBride
1 On Mon, 8 Oct 2007 14:11:30 -0400
2 Jerry McBride <mcbrides9@×××××××.net> wrote:
3
4 >
5 > I'm trying to polish off a gentoo install on a COMPAQ R3000 with
6 > Broadcom 4306 wireless chips...
7 >
8 > I can manually setup a solid 54M connection without much effort, but
9 > trying to get it done automatically is troublesome...
10 >
11 > I setup a softlevel named "wireless". I deleted the net.eth0 hardware
12 > connection and added net.eth1 in it's place.
13 >
14 > My /etc/conf.d/net looks like (wired config deleted):
15 >
16 > # wireless
17 > #
18 > dns_domain_eth1=("my.domain")
19 > config_eth1=( "192.168.0.10 netmask 255.255.255.0 broadcast
20 > 192.168.0.255" ) routes_eth1=( "default via 192.168.0.1" )
21 > ap_eth1="any"
22 > essid_eth1="any"
23 > essid_eth1="wireless_at_mcbrides"
24 > preferred_aps=( "wireless_at_mcbrides")
25 > mode_eth1="managed"
26 > managed_essid_eth1="wireless_at_mcbrides"
27 > key_wireless_at_mcbrides="[1] ccf4c2305d0d99563a4eaa9597"
28 >
29 > #ccf4 c230 5d0d 9956 3a4e aa95 97
30 > #1c20 3ad0 cd0c e131 8c54 7b3e bb
31 > #4c1a 952c 4ee4 4190 3688 d121 d6
32 > #2786 96d8 4ab4 075f d541 9dad 22
33 >
34 > rate_wireless_at_mcbrides=("54M")
35 > channel_eth1="11"
36 > dns_servers_eth1=("68.87.75.194" "68.87.64.146")
37 >
38 >
39 > What fails to happen is... the device is not brought up automatically.
40 > That is, to get this to work, I have to manually "ifconfig eth1 up"
41 > then "/etc/init.d/net.eth1 start". After that, wireless connection is
42 > perfect.
43 >
44 > The problem I have is, how to get "ifconfig eth1 up" to run before the
45 > wireless stuff?
46 >
47 > Also, are the entries in /etc/conf.d/net order specific? To me it
48 > seems if things are ordered "just right" you either get support for
49 > various commands or you don't. Anyone see anything "killer" wrong in
50 > my net file?
51 >
52 > Thanks for your time... and for the flame bots out there... I've
53 > googled my self to death and have been through the gentoo.forums. My
54 > specific setup issues aren't addressed.
55 >
56 > ---
57 >
58 >
59 > Jerry McBride
60 >
61
62 Sorry to reply to my own cry for help...
63
64 I fixed it. After determining that net.lo is pretty much brain dead and
65 not being willing to fix it... I wrote my own init script. It's even
66 more brain dead, but works 100%.
67
68 The net.lo script and supporting code simply does not work as needed
69 for this laptop.
70
71 Cheers all...
72
73 #!/sbin/runscript
74 #
75 depend() {
76 before cupsd
77 }
78
79 start() {
80 ebegin "Starting wireless"
81 modprobe bcm43xx
82 ifconfig eth1 192.168.0.10 netmask 255.255.255.0
83 iwconfig eth1 ap 00:02:6e:49:19:2f
84 iwconfig eth1 mode managed
85 iwconfig eth1 channel 11
86 iwconfig eth1 key [1] ccf4c2305d0d99563a4eaa9597
87 iwconfig eth1 rate 54M
88 iwconfig eth1 essid wireless_at_mcbrides
89
90 ifconfig eth1 192.168.0.10 netmask 255.255.255.0
91
92 route add default gateway 192.168.0.1 eth1
93
94 echo "domain my.domain" > /etc/resolv.conf
95 echo "nameserver 68.87.75.194" >> /etc/resolv.conf
96 echo "nameserver 68.87.64.146" >> /etc/resolv.conf
97
98 }
99
100 stop() {
101 ebegin "Stopping wireless"
102 ifconfig eth1 down
103 rmmod bcm43xx
104 }
105
106
107 --
108
109 Cheers...
110
111
112
113 --
114 gentoo-user@g.o mailing list