LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-12-2005, 01:05 AM   #1
drwilsontx
LQ Newbie
 
Registered: Mar 2005
Location: Texas
Distribution: Slackware 10.1
Posts: 10

Rep: Reputation: 0
wireless startup problem


I have got my wireless card working and have been working on getting it to setup at boot time, I added the following lines to /etc/rc.d/rc.local-

iwconfig wlan0 essid "my essid"
dhcpcd wlan0


I get an error "no such device wlan0 device not found, SET ESSID failed no such device" (paraphrased), I login go to su type the same commands and it works fine. I removed the lines from reboot and login and try iwconfig again it fails the first time and works the second time. I have tried adding modprobe ndiswrapper and ifconfig wlan0 up in different orders, always the same fails the first time works on the second try.
I followed the instructions for ndiswrapper, make install,ndiswrapper -i NET8180.INF, modprobe ndiswrapper make sure it works and then ndiswrapper -m. I reinstalled slack 10.1 to make sure it wasn't something I had changed and didn't undo. Any suggestions would be appreciated

Armada 7400
Linksys wpc11 ver 4
Slackware 10.1
 
Old 03-12-2005, 02:43 AM   #2
tormented_one
Member
 
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383

Rep: Reputation: 30
do you have to modprobe to activate the card? If you do then that needs to be first in the rc.local
 
Old 03-12-2005, 08:41 AM   #3
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Why don't you just use the rc.pcmcia and rc.wireless scripts? Thats why they're there... Is it a cardbus?
 
Old 03-12-2005, 01:56 PM   #4
tormented_one
Member
 
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383

Rep: Reputation: 30
Good question, I used local for a while and have been using pcmcia and wireless for a while now. Either way You can do the samething with both.
 
Old 03-12-2005, 04:06 PM   #5
drwilsontx
LQ Newbie
 
Registered: Mar 2005
Location: Texas
Distribution: Slackware 10.1
Posts: 10

Original Poster
Rep: Reputation: 0
tormented_one, I don't need to modprobe to bring it up, just iwconfig wlan0 essid xxxxx then dhcpcd, I already checked that no luck

jonga357- all the searching I have found here in the slackware forum and the network forum talk about using rc.local so I hsve nothing to go by to set up rc.wirelessor rc.pcmcia. As to wheter it is a cardbus or not I don't know it doesn't say cardbus anywhere on the card so I would assume it is not a cardbus all I know is that it is a Linksys WPC11 pcmcia card
 
Old 03-12-2005, 05:58 PM   #6
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Well, cardbus=PCMCIA/LAPTOP basically. This isn't a wireless PCI card on a desktop, right?

Just edit /etc/rc.d/rc.wireless.conf and Slackware will do the rest. I trimed my rc.wireless.conf down to just this:

Code:
VERBOSE=1

case "$HWADDR" in

*)
    ESSID="my-essid"
    MODE="Managed"
    KEY="my-encryption-key"
    ;;
esac
Then, if you have your router assign you an IP, just put "yes" under the eth0 device listing in /etc/rc.d/rc.inet1.conf

Code:
# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]=""
If you like to manually assign an IP, just leave the dhcp line blank and fill out IPADDR and NETMASK. Pretty simple in Slackware. I blacklist my ethernet module from loading at boot thru /etc/hotplug/blacklist because the 2 devices like to play musical chairs and it screws things up more often than not...
 
Old 03-13-2005, 09:43 PM   #7
drwilsontx
LQ Newbie
 
Registered: Mar 2005
Location: Texas
Distribution: Slackware 10.1
Posts: 10

Original Poster
Rep: Reputation: 0
Still not working as it should

I tried the rc.pcmcia and rc.wireless scripts, set the rc.wireless.conf to my essid and mode, then made sure rc.inet1 use_dhcp="yes" and it is a no go I still have to use iwconfig twice to bring up the card. as near as I can tell ndiswrapper is loading at boot but not setting up the wlan0 and is not available until after the first time wlan0 is used.
 
Old 03-16-2005, 02:09 PM   #8
drwilsontx
LQ Newbie
 
Registered: Mar 2005
Location: Texas
Distribution: Slackware 10.1
Posts: 10

Original Poster
Rep: Reputation: 0
got it working

It's a bit of a hack but it works, in rc.modules I added

modprobe ndiswrapper


then in rc.local I used,


iwconfig wlan0 essid myessid
dhcpcd wlan0

and now it works, still not able to use rc.pcmcia and rc.wireless.conf, but it works
 
Old 03-16-2005, 03:09 PM   #9
tormented_one
Member
 
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383

Rep: Reputation: 30
you could put modprobe ndiswrapper in rc.local instead if you wanted
 
Old 03-16-2005, 08:38 PM   #10
drwilsontx
LQ Newbie
 
Registered: Mar 2005
Location: Texas
Distribution: Slackware 10.1
Posts: 10

Original Poster
Rep: Reputation: 0
I tried it there, several times, for some reason it never works, iwconfig wlan0 fails if they are consecutive lines.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Not finding my wireless card on startup soaked Linux - Wireless Networking 7 07-21-2005 08:25 AM
Load wireless settings on startup CPUguy387 Linux - Wireless Networking 5 02-21-2005 06:31 PM
My Wireless Script on Startup Jamel75 SUSE / openSUSE 2 02-05-2005 04:59 AM
Adding Wireless to startup. ex0r Linux - Wireless Networking 3 09-06-2004 05:51 PM
Wireless Configuration at Startup Drake88 Linux - Wireless Networking 2 05-17-2004 12:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration