LinuxQuestions.org
Visit Jeremy's Blog.
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 05-23-2004, 06:42 PM   #1
mordak
LQ Newbie
 
Registered: Sep 2003
Location: Orange, MA
Distribution: Mint, Debian, Ubuntu's, Puppy, Siduction, Crunchbang
Posts: 24

Rep: Reputation: 15
How do I get my wireless setting to take on restart?


I have my wireless network working fine with my Slackware 9.1 install. Problem is when I have to restart the machine, I have to redo the:
"iwconfig eth0 key xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xx : command for my encryption key.
Then I have to: "dhcpcd eth0" again to grab an IP address.

What I want to do is get the setup to apply when I do a hard restart so if I have to remotely restart the machine I can be sure it will come back up again without having to be there to put the commands in again. I'm sure it's simple but I just can't seem to figure it out.
Thanks in advance,
Mordak
 
Old 05-23-2004, 06:56 PM   #2
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
you can add those two lines to your startup scripts. In mandrake it would be to /etc/rc.local which gets executed last. I'm not sure if it's called the same thing in slack but it can be done.
 
Old 05-23-2004, 07:36 PM   #3
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware
Posts: 1,876

Rep: Reputation: 49
In Slack, it will be: /etc/pcmcia/wireless.opts
The file is pretty well commented, but post back if you need help or search my posts. I've posted mine as an example several times.
 
Old 05-25-2004, 05:51 PM   #4
mordak
LQ Newbie
 
Registered: Sep 2003
Location: Orange, MA
Distribution: Mint, Debian, Ubuntu's, Puppy, Siduction, Crunchbang
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by 2Gnu
In Slack, it will be: /etc/pcmcia/wireless.opts
The file is pretty well commented, but post back if you need help or search my posts. I've posted mine as an example several times.
Thanks 2Gnu. I'll give it a shot. i have looked at the wireless.opts file and there's so much stuff in there I'm not sure where to start.
Later.
 
Old 03-08-2005, 05:01 PM   #5
mordak
LQ Newbie
 
Registered: Sep 2003
Location: Orange, MA
Distribution: Mint, Debian, Ubuntu's, Puppy, Siduction, Crunchbang
Posts: 24

Original Poster
Rep: Reputation: 15
For what it's worth, The file I needed to edit was:
/etc/rc.d/rc.wireless.conf

I added the ESSID and WEP KEY in the below section:

## NOTE : Comment out the following five lines to activate the samples below ...
## --------- START SECTION TO REMOVE -----------
## Pick up any Access Point, should work on most 802.11 cards
*)
INFO="my-info or essid"
ESSID="my essid"
KEY="my WEP KEY"
;;
## ---------- END SECTION TO REMOVE ------------

Now when I restart my Slackware 10.1 system the card picks up the IP address and I don't have to enter the ESSID and KEY separately. It would be nice if this were documented somewhere else. 2Gnu said it would be the /etc/pcmcia/wireless.opts file but Slackware seems to use another copy of this and names it /etc/rc.d/rc.wireless.conf. As a matter of fact, the /etc/rc.d/rc.wireless.conf file states:
# -- This is a modified '/etc/pcmcia/wireless.opts' script --
So who'd a thunk it.
Later,
Mordak
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
wireless connection requires network restart bbcar Linux - Wireless Networking 1 11-21-2005 02:02 AM
best way to restart a wireless card/daemon? lefty.crupps Linux - Wireless Networking 3 08-22-2005 01:36 PM
Setting up wireless - please help! penguin tech Linux - Newbie 23 08-16-2005 09:39 AM
restart wireless nic jasone Slackware 5 04-15-2005 12:55 PM
Setting up Wireless.... SiliconToad Linux - Wireless Networking 2 07-03-2004 07:31 AM

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

All times are GMT -5. The time now is 06:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration