[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



I split it up into 3 lines, and ran it.  Failed the first time, but did
work the second.  I'll keep mucking with it.  Thanks.

Thus spake Jim Popovitch (jimpop at yahoo.com):

> Hi Rob,
> 
> 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-----
&gt; &gt; &gt; From: ale-bounces at ale.org [<a  rel="nofollow" href="mailto:ale-bounces";>mailto:ale-bounces</a> at ale.org] On Behalf Of Robert
&gt; &gt; &gt; L. Harris
&gt; &gt; &gt; Sent: Tuesday, December 07, 2004 8:55 AM
&gt; &gt; &gt; To: Atlanta Linux Enthusiasts
&gt; &gt; &gt; Subject: [ale] Script won't assosciate my wireless?
&gt; &gt; &gt; 
&gt; &gt; &gt; 
&gt; &gt; &gt; 
&gt; &gt; &gt; I've recently gotten wireless access in my office.  I'm trying to script the
&gt; &gt; &gt; association to the AP.  I've created a short bash script which reloads the
&gt; &gt; &gt; drivers (Centrino in an IBM Laptop), downs the interface, and then runs the
&gt; &gt; &gt; association.  If I run the script it never associates.
&gt; &gt; &gt; If I put an echo of the exact iwconfig command into the script and run the
&gt; &gt; &gt; command by hand it comes up fine.
&gt; &gt; &gt; 
&gt; &gt; &gt; Any one have any ideas?
&gt; &gt; &gt; 
&gt; &gt; &gt; 
&gt; &gt; &gt; :wq!
&gt; &gt; &gt; ---------------------------------------------------------------------------
&gt; &gt; &gt; Robert L. Harris                     | GPG Key ID: E344DA3B
&gt; &gt; &gt;                                          @ x-hkp://pgp.mit.edu
&gt; &gt; &gt; DISCLAIMER:
&gt; &gt; &gt;       These are MY OPINIONS             With Dreams To Be A King,
&gt; &gt; &gt;        ALONE.  I speak for              First One Should Be A Man
&gt; &gt; &gt;        no-one else.                       - Manowar
&gt; &gt; &gt; 
&gt; &gt; &gt; 
&gt; &gt; &gt; ---
&gt; &gt; &gt; Incoming mail is certified Virus Free.
&gt; &gt; &gt; Checked by AVG anti-virus system (<a  rel="nofollow" href="http://www.grisoft.com";>http://www.grisoft.com</a>).
&gt; &gt; &gt; Version: 6.0.804 / Virus Database: 546 - Release Date: 11/30/2004
&gt; &gt; &gt;  
&gt; &gt; &gt;     
&gt; &gt; &gt; 
&gt; &gt; &gt; ---
&gt; &gt; &gt; Outgoing mail is certified Virus Free.
&gt; &gt; &gt; Checked by AVG anti-virus system (<a  rel="nofollow" href="http://www.grisoft.com";>http://www.grisoft.com</a>).
&gt; &gt; &gt; Version: 6.0.804 / Virus Database: 546 - Release Date: 11/30/2004
&gt; &gt; &gt;  
&gt; &gt; &gt; 
&gt; &gt; &gt; _______________________________________________
&gt; &gt; &gt; Ale mailing list
&gt; &gt; &gt; Ale at ale.org
&gt; &gt; &gt; <a  rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale";>http://www.ale.org/mailman/listinfo/ale</a>
&gt; &gt; &gt; 
&gt; &gt; &gt;  ** CRM114 Whitelisted by: mit.edu **
&gt; &gt; 
&gt; &gt; :wq!
&gt; &gt; ---------------------------------------------------------------------------
&gt; &gt; Robert L. Harris                     | GPG Key ID: E344DA3B
&gt; &gt;                                          @ x-hkp://pgp.mit.edu
&gt; &gt; DISCLAIMER:
&gt; &gt;       These are MY OPINIONS             With Dreams To Be A King,
&gt; &gt;        ALONE.  I speak for              First One Should Be A Man
&gt; &gt;        no-one else.                       - Manowar
&gt; &gt; 
&gt; &gt; _______________________________________________
&gt; &gt; Ale mailing list
&gt; &gt; Ale at ale.org
&gt; &gt; <a  rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale";>http://www.ale.org/mailman/listinfo/ale</a>
&gt; 
&gt; _______________________________________________
&gt; Ale mailing list
&gt; Ale at ale.org
&gt; <a  rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale";>http://www.ale.org/mailman/listinfo/ale</a>

: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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature



</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--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>
<li><strong><a name="00276" href="msg00276.html">[ale] Script won't assosciate my wireless?</a></strong>
<ul><li><em>From:</em> jimpop at yahoo.com (Jim Popovitch)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00279.html">[ale] WPS Format documents</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00281.html">[ale] WPS Format documents</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00276.html">[ale] Script won't assosciate my wireless?</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00261.html">[ale] december NW ALE meeting</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00280"><strong>Date</strong></a></li>
<li><a href="threads.html#00280"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>