[ale] Script won't assosciate my wireless?
Jim Popovitch
jimpop at yahoo.com
Tue Dec 7 12:15:44 EST 2004
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-----
> > From: ale-bounces at ale.org [mailto:ale-bounces 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 (http://www.grisoft.com).
> > Version: 6.0.804 / Virus Database: 546 - Release Date: 11/30/2004
> >
> >
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.804 / Virus Database: 546 - Release Date: 11/30/2004
> >
> >
> > _______________________________________________
> > Ale mailing list
> > Ale at ale.org
> > http://www.ale.org/mailman/listinfo/ale
> >
> > ** 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
> http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list