Results 1 to 5 of 5
I'm using a tutorial trying to get the driver ipw2200 to work and I'm having a little trouble at the end when I'm going to load the driver.
Code:
Hajo:/home/hajo/ipw2200/ipw2200-1.2.0# ...
- 11-06-2006 #1Just Joined!
- Join Date
- Oct 2006
- Location
- Sweden
- Posts
- 53
"for i in" problems
I'm using a tutorial trying to get the driver ipw2200 to work and I'm having a little trouble at the end when I'm going to load the driver.
According to the tutorial this can be because I have an earlier version of ipw2200 installed already.Code:Hajo:/home/hajo/ipw2200/ipw2200-1.2.0# . load Unloaded: ieee80211 ieee80211_crypt_tkip ieee80211_crypt_ccmp ieee80211_crypt_wep ieee80211_crypt insmod: can't read './ipw2200.ko': No such file or directory Loaded: ieee80211_crypt ieee80211_crypt_wep ieee80211_crypt_tkip ieee80211_crypt_ccmp ieee80211
A filesearch for "ipw2200.ko" shows me that I have to files so yes I have an old version in a older kernel.
This is my current kernel, but I have a file in my older kernel "2.6.16-2-686" and first of all I'm wondering, should I remove this kernel when I have a newer one?Code:Hajo:/home/hajo/hotplug-2004_03_29# uname -r 2.6.17-2-686
If this problem shows trying to load the driver, I am suppose to run a script to remove the older versions.
This is the instructions the tutorial is given me.Code:% for i in ieee80211 ipw2200; do \ find /lib/modules/'uname -r' -iname $(i)*; done
So I type the following in a terminal:
but I'm getting errors, "token errors and so on".Code:% for i in ieee80211 ipw2200; do find /lib/modules/2.6.16-2-686 -iname $(i)*; done
I am familiar with programming but not linux-terminal programming, I guess that my syntax are wrong.
Anyone who can help me? I have tried to change mostly everything and now I'm really tired. Was hoping to get my wlan up tonight but no
Thank you in advance! All help is appreciated!
- 11-07-2006 #2What shell are you using??I am familiar with programming but not linux-terminal programming, I guess that my syntax are wrong.Presuming this is bash, you do not want to try to expand the shell variable like $(i)Code:
echo $SHELL
The correct notation should be, e.g.:Better to quote ("...") the shell variable, especially in your particular case.Code:for i in item1 item2 ; do echo "$i" ; done
- 11-07-2006 #3Just Joined!
- Join Date
- Oct 2006
- Location
- Sweden
- Posts
- 53
Yes, it's bash.
Originally Posted by anomie
Ok, thank you. I will try that as soon as my kernel is reinstalled (compiling now).The correct notation should be, e.g.:Better to quote ("...") the shell variable, especially in your particular case.Code:for i in item1 item2 ; do echo "$i" ; done
But I'm still wondering what I should do with my old kernel? Because if I remove that then my problem will be fixed I think because the old driver will dissapear.
So the question is, should I remove the old kernel when a new kernel is installed or should I keep it?
- 11-07-2006 #4
It's been a very long time since I compiled my own (Linux) kernel from source, so I will answer in principle: Keep the old one around so that you have a working one to boot to. Without it, if the new one won't boot, you may have some headaches.
- 11-07-2006 #5Just Joined!
- Join Date
- Oct 2006
- Location
- Sweden
- Posts
- 53
Thank you!
Originally Posted by anomie
edit: I think I know what to do now so I will try it for myself


Reply With Quote
