LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-15-2005, 07:26 AM   #1
CPUguy387
Member
 
Registered: Jul 2003
Location: San Luis Obispo, CA
Distribution: Gentoo 2007.0
Posts: 88

Rep: Reputation: 15
Load wireless settings on startup


Hi,

I was wondering how I could save the following commands in Gentoo so that my wireless card is started up with its WEP automatically on startup:

Code:
modprobe ndiswrapper
iwconfig wlan0 essid StM
iwconfig wlan0 enc XXXXXXXX open
dhcpcd wlan0
Can I create some sort of script? If so, could you please tell me how? Thanks.

Matt
 
Old 02-15-2005, 07:35 AM   #2
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
vi scriptname

then add these lines

#!/bin/bash
modprobe ndiswrapper
iwconfig wlan0 essid StM
iwconfig wlan0 enc XXXXXXXX open
dhcpcd wlan0

Save it and exit
chmod 755 scriptname

Then you can run it by typing ./scriptname
 
Old 02-15-2005, 07:37 AM   #3
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
I don't know exactly how the gentoo files look like but you can set those things easily

First for ndiswrapper:
Code:
ndiswrapper -m
For the other two files you need to find your interfaces file (for me it's in /etc/network. Create an entry like this. This is what I use:

Quote:
auto wlan0
iface wlan0 inet dhcp
wireless-essid ****
auto makes it start on boot, dhcp to use dhcp (other option is static)

Last edited by darkleaf; 02-21-2005 at 04:10 PM.
 
Old 02-18-2005, 10:06 PM   #4
CPUguy387
Member
 
Registered: Jul 2003
Location: San Luis Obispo, CA
Distribution: Gentoo 2007.0
Posts: 88

Original Poster
Rep: Reputation: 15
Thanks guys! The script idea works nicely, I think I'll just start it manually since I won't always be at my house for wireless anyways ;-). Thanks again!!!

Matt
 
Old 02-21-2005, 11:16 AM   #5
eduardomsilva
Member
 
Registered: Feb 2005
Location: Portugal
Distribution: Slackware
Posts: 45

Rep: Reputation: 15
Hello!!

I think you may include those commands in this file "/etc/rc.d/rc.local"... I am Slackware user... but I think this is a general linux file to include commands to be runned in the initialization procedure.

Or maybe better... just run from there the script that you already did!!

Try it...

see you

/edu
 
Old 02-21-2005, 06:31 PM   #6
CPUguy387
Member
 
Registered: Jul 2003
Location: San Luis Obispo, CA
Distribution: Gentoo 2007.0
Posts: 88

Original Poster
Rep: Reputation: 15
Well, I looked, and I don't have that file at that location. However, the script I made for starting it works just fine. Thanks for helping though!
 
  


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
Monitor settings incorrect on startup Mosaic Slackware 2 11-30-2005 04:39 AM
kde will not load because of moniter settings beosmr.x Linux - Newbie 3 01-08-2005 01:50 AM
Where are wlan0 settings loaded from on startup? Steerpike Linux - Wireless Networking 3 11-23-2004 03:31 AM
Changed network settings, Mandrake won't load InsolentLS Linux - Software 1 11-11-2004 04:18 PM
Daemon Settings Failed At Startup!!!!!!!! kDwosk Linux - Newbie 2 08-22-2003 05:46 PM


All times are GMT -5. The time now is 12:47 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration