LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 10-20-2004, 08:40 PM   #1
philipacamaniac
Member
 
Registered: Oct 2003
Distribution: Slackware 10, Slackware-current, Slax
Posts: 50

Rep: Reputation: 15
location of wireless conf in Slackware


Hey all, I've got my Linksys WUSB11v2.6 working grrreat in slackware (kernel 2.4.26). But, now that it is working, I'm afraid to restart. I want to look and see that the iwconfig settings will reload, and that the ifconfig settings will reload.

Normally, network settings are stored in /etc/rc.d/rc.inet1.conf, but I guess settings for wlan0 aren't in there. And that doesn't say anything about iwconfig settings.

I'm using the sourceforge Atmel driver, and I already know that the module loads at boot time with no problem.

So, where is ifconfig wlan0 pulling its configuration info from? And where is iwconfig wlan0 pullings its configuration from?
 
Old 10-20-2004, 09:27 PM   #2
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware
Posts: 1,880

Rep: Reputation: 51
You can edit:
/etc/pcmcia/wireless.opts
or
/etc/rc.d/rc.wireless.conf

I'm using orinoco_cs vs. Atmel. Not sure if that changes anything.
 
Old 10-20-2004, 09:30 PM   #3
philipacamaniac
Member
 
Registered: Oct 2003
Distribution: Slackware 10, Slackware-current, Slax
Posts: 50

Original Poster
Rep: Reputation: 15
I checked both those files and they didn't have any settings configured. I'm thinking that means that isn't where the config is stored.

My card is USB, so I doubt the /etc/pcmcia would be the answer...

I still haven't restarted, but I suppose I can get it working again easily when I reboot. Thanks for trying, though.
 
Old 10-20-2004, 09:55 PM   #4
superbondbond
Member
 
Registered: Nov 2002
Posts: 668

Rep: Reputation: 30
You'll have to manually enter in your wireless settings into rc.wireless.conf, then make sure that rc.wireless is executable.

My own method is from the Slackware 9 days before the rc.wireless script was added, using a slightly different script I found somewhere (but it's the same concept):

/etc/rc.d/rc.wlan0
Code:
#!/bin/sh
   #
   # rc.wlan0
   #

   CHANNEL=1
   ESSID=""
   INTERFACE="wlan0"
   IPADDR=""
   KEY="" 
   MODE=""
   NETMASK="" 

   # Determine broadcast and network addresses from the IP address and netmask:

   BROADCAST=`/bin/ipmask $NETMASK $IPADDR | cut -f 1 -d ' '`
   NETWORK=`/bin/ipmask $NETMASK $IPADDR | cut -f 2 -d ' '`

   # Set up the WiFi card

   echo "Configuring ${INTERFACE}:"
   /sbin/ifconfig ${INTERFACE} ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}
   /sbin/iwconfig ${INTERFACE} essid ${ESSID}
   /sbin/iwconfig ${INTERFACE} channel ${CHANNEL}
   /sbin/iwconfig ${INTERFACE} mode ${MODE}
   sleep 2
   /sbin/iwconfig ${INTERFACE} key ${KEY}
Just insert your appropriate settings, chmod +x, then add a call to this at the end of your rc.inet1:
Code:
###################################
### Wireless Card Configuration ###
###################################

if [ -x /etc/rc.d/rc.wlan0 ]; then
   echo "configuring wireless card..."
   /etc/rc.d/rc.wlan0
fi

# End of /etc/rc.d/rc.inet1
Hope that helps.
 
Old 10-21-2004, 12:50 AM   #5
philipacamaniac
Member
 
Registered: Oct 2003
Distribution: Slackware 10, Slackware-current, Slax
Posts: 50

Original Poster
Rep: Reputation: 15
Thanks, that did it.

Actually, I still need to go in and make some changes. See, I had rc.inet1 bringing up the wlan0 interface from rc.inet1.conf, but that was giving eth0 and wlan0 the same IP. Easy to fix if I just put the ifconfig line in rc.wireless. Cool.

I restarted and all is well, except the nameservers I put in /etc/resolv.conf didn't stay there. (Oh yeah DHCP no worky with my current setup). So I reentered the nameserver info, made a backup file, and hopefully it'll never happen again, but I'll be ready if it does.

Thanks again.
 
Old 10-21-2004, 04:21 AM   #6
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
Quote:
Originally posted by philipacamaniac

I restarted and all is well, except the nameservers I put in /etc/resolv.conf didn't stay there. (Oh yeah DHCP no worky with my current setup). So I reentered the nameserver info, made a backup file, and hopefully it'll never happen again, but I'll be ready if it does.

If you set the essid before dhcp is executed it should work.
 
Old 10-21-2004, 10:50 AM   #7
philipacamaniac
Member
 
Registered: Oct 2003
Distribution: Slackware 10, Slackware-current, Slax
Posts: 50

Original Poster
Rep: Reputation: 15
Okay, I might try that. But I don't mind having a static IP; it makes it easier to forward ports from the router. Otherwise, how useful is SSH, anyway? ;-)
 
  


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
location of grub.conf zchoyt Linux - Software 1 08-10-2005 10:26 PM
2 files httpd.conf under two diffent location EgosZ Linux - Networking 7 10-24-2004 10:29 AM
Location of lilo.conf on SUSE 9.1 profesional tt08 Linux - General 4 09-27-2004 10:13 PM
cannot determine conf location from referer safescott Linux - General 1 06-12-2004 11:13 PM
lilo.conf location xjphil Debian 1 12-17-2003 10:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 06:20 AM.

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