[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Tue Dec 7 12:15:44 2004 -->
- <!--x-from-r13: wvzcbc ng lnubb.pbz (Xvz Bbcbivgpu) -->
- <!--x-message-id: 1102439159.2471.16.camel@blue -->
- <!--x-reference: [email protected] -->
- <!--x-reference: [email protected] --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] Script won't assosciate my wireless? -->
- <li><em>date</em>: Tue Dec 7 12:15:44 2004</li>
- <li><em>from</em>: jimpop at yahoo.com (Jim Popovitch)</li>
- <li><em>in-reply-to</em>: <<a href="msg00259.html">[email protected]</a>></li>
- <li><em>references</em>: <<a href="msg00257.html">[email protected]</a>> <<a href="msg00259.html">[email protected]</a>></li>
- <li><em>subject</em>: [ale] Script won't assosciate my wireless?</li>
I have a near identical setup, what you need to do is break the iwconfig
commands up into multiple steps. I also have to rmmod and insmod the
ipw2100 module when switching between WEB and t-mobile. Basically what
to make life easy I just wrote a bunch of short scripts to use sudo and
manually config the correct network. Linux sucks when it comes to
wireless auto config.
Here's my ifup-home script
-------------
# reset networking....
sudo ifconfig eth0 down > /dev/null 2>&1
sudo ifconfig eth1 down > /dev/null 2>&1
sudo iwconfig eth1 essid any > /dev/null 2>&1
sudo modprobe -r e1000
sudo modprobe -r ipw2100
sudo modprobe -r ieee80211_crypt_wep
sudo modprobe -r ieee80211_crypt
sudo modprobe -r ieee80211
# load network modules
sudo modprobe e1000
sudo modprobe ipw2100
# config home network
sudo iwconfig eth1 essid home-net
sudo iwconfig eth1 key ****************************
sudo ifup eth1
---------------------------
hth,
-Jim P.
On Tue, 2004-12-07 at 09:05 -0500, Robert L. Harris wrote:
>
> Sorry, wanted to send before I forgot :>
>
> Linux, Debian unstable
> 2.6.9 Kernel
> Latest KDE
> Centrino Drive ipw2100-0.55
>
> The exact command line is:
>
> /sbin/iwconfig eth1 mode Managed essid wepkey key 66796fad63387358696e6e6763
> (Obviously a diff key and SID)
>
> If I put that command in a bash script it won't associate. If I run it
> by hand it works fine.
>
>
>
>
> Thus spake Jerald Sheets (jsheets at yahoo.com):
>
> > Platform?
> > Distro?
> > Version?
> > Boot Loader?
> >
> > --jms
> >
> > -----Original Message-----
> > From: ale-bounces at ale.org [<a rel="nofollow" href="mailto:ale-bounces">mailto:ale-bounces</a> at ale.org] On Behalf Of Robert
> > L. Harris
> > Sent: Tuesday, December 07, 2004 8:55 AM
> > To: Atlanta Linux Enthusiasts
> > Subject: [ale] Script won't assosciate my wireless?
> >
> >
> >
> > I've recently gotten wireless access in my office. I'm trying to script the
> > association to the AP. I've created a short bash script which reloads the
> > drivers (Centrino in an IBM Laptop), downs the interface, and then runs the
> > association. If I run the script it never associates.
> > If I put an echo of the exact iwconfig command into the script and run the
> > command by hand it comes up fine.
> >
> > Any one have any ideas?
> >
> >
> > :wq!
> > ---------------------------------------------------------------------------
> > Robert L. Harris | GPG Key ID: E344DA3B
> > @ x-hkp://pgp.mit.edu
> > DISCLAIMER:
> > These are MY OPINIONS With Dreams To Be A King,
> > ALONE. I speak for First One Should Be A Man
> > no-one else. - Manowar
> >
> >
> > ---
> > Incoming mail is certified Virus Free.
> > Checked by AVG anti-virus system (<a rel="nofollow" href="http://www.grisoft.com">http://www.grisoft.com</a>).
> > Version: 6.0.804 / Virus Database: 546 - Release Date: 11/30/2004
> >
> >
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (<a rel="nofollow" href="http://www.grisoft.com">http://www.grisoft.com</a>).
> > Version: 6.0.804 / Virus Database: 546 - Release Date: 11/30/2004
> >
> >
> > _______________________________________________
> > Ale mailing list
> > Ale at ale.org
> > <a rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale">http://www.ale.org/mailman/listinfo/ale</a>
> >
> > ** CRM114 Whitelisted by: mit.edu **
>
> :wq!
> ---------------------------------------------------------------------------
> Robert L. Harris | GPG Key ID: E344DA3B
> @ x-hkp://pgp.mit.edu
> DISCLAIMER:
> These are MY OPINIONS With Dreams To Be A King,
> ALONE. I speak for First One Should Be A Man
> no-one else. - Manowar
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> <a rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale">http://www.ale.org/mailman/listinfo/ale</a>
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00280" href="msg00280.html">[ale] Script won't assosciate my wireless?</a></strong>
<ul><li><em>From:</em> Robert.L.Harris at rdlg.net (Robert L. Harris)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00257" href="msg00257.html">[ale] Script won't assosciate my wireless?</a></strong>
<ul><li><em>From:</em> Robert.L.Harris at rdlg.net (Robert L. Harris)</li></ul></li>
<li><strong><a name="00259" href="msg00259.html">[ale] Script won't assosciate my wireless?</a></strong>
<ul><li><em>From:</em> Robert.L.Harris at rdlg.net (Robert L. Harris)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00275.html">[ale] Laptops and Linux</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00277.html">[ale] ALE Central Meeting questions</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00267.html">[ale] Script won't assosciate my wireless?</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00280.html">[ale] Script won't assosciate my wireless?</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00276"><strong>Date</strong></a></li>
<li><a href="threads.html#00276"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>