Find the answer to your Linux question:
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# ...
  1. #1
    Just 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.

    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
    According to the tutorial this can be because I have an earlier version of ipw2200 installed already.

    A filesearch for "ipw2200.ko" shows me that I have to files so yes I have an old version in a older kernel.

    Code:
    Hajo:/home/hajo/hotplug-2004_03_29# uname -r
    2.6.17-2-686
    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?

    If this problem shows trying to load the driver, I am suppose to run a script to remove the older versions.

    Code:
    % for i in ieee80211 ipw2200; do \
    find /lib/modules/'uname -r' -iname $(i)*; done
    This is the instructions the tutorial is given me.

    So I type the following in a terminal:
    Code:
    % for i in ieee80211 ipw2200; do find /lib/modules/2.6.16-2-686 -iname $(i)*; done
    but I'm getting errors, "token errors and so on".

    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!

  2. #2
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    I am familiar with programming but not linux-terminal programming, I guess that my syntax are wrong.
    What shell are you using??
    Code:
    echo $SHELL
    Presuming this is bash, you do not want to try to expand the shell variable like $(i)

    The correct notation should be, e.g.:
    Code:
    for i in item1 item2 ; do echo "$i" ; done
    Better to quote ("...") the shell variable, especially in your particular case.

  3. #3
    Just Joined!
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    53
    Quote Originally Posted by anomie
    What shell are you using??
    Code:
    echo $SHELL
    Presuming this is bash, you do not want to try to expand the shell variable like $(i)
    Yes, it's bash.


    The correct notation should be, e.g.:
    Code:
    for i in item1 item2 ; do echo "$i" ; done
    Better to quote ("...") the shell variable, especially in your particular case.
    Ok, thank you. I will try that as soon as my kernel is reinstalled (compiling now).

    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?

  4. #4
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    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.

  5. #5
    Just Joined!
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    53
    Quote Originally Posted by anomie
    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.
    Thank you!

    edit: I think I know what to do now so I will try it for myself

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •