LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-30-2007, 06:01 AM   #1
sqwiggly
LQ Newbie
 
Registered: Nov 2006
Posts: 4

Rep: Reputation: 0
Starting wireless network at boot


I have finally got my laptop wireless card working, great!

Only problem is I can't get it to work automatically at boot up. I have read guides and followed instructions, tried making ifcfg and ifup scripts, etc. and it's not working.

Basically, each time I boot up, i open console, type iwconfig.... see that the device is there (originally it was named ra0, but each time i boot up it changes, it has now changed to ra4), i then type dhcpcd ra# (whatever number it is) and then my net works. I just want it to work on it's own.

Any ideas?
 
Old 07-31-2007, 01:55 PM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Dirty solution:
devname=$(iwconfig 2>/dev/null | head -1 | sed -e 's/\s.*//')
should place the device name into $devname (try echoing it afterwise).
Now you could try using it and writing a list of commands that can be run without being modified by you.
Next write them in a file and check that running
. wifi-script-file
after boot works. Next run
chmod a+x wifi-script-file
copy the file to /etc/init.d and symbollically link it (ln -s) to directory /etc/rcS.d or /etc/rc.d/rcS.d or to both the directories /etc/rc3.d and /etc/rc5.d - whatever you have. The name of the symbolic link must start with S99 . Explanation: /etc/init.d is a traditional place for boot scripts. Every script that is referenced by a symlink with a name starting with 'S' in /etc/rc.d/rcS.d or /etc/rcS.d (depending on configuration) is run with first parameter 'start' once on startup (but you can ignore parameter here). rc3.d is for 'entering normal runlevel' and rc5.d is for 'entering graphical runlevel', but it's a bit distribution-dependent (really, configuration-dependent).
PS. Fill in 'Distribution: ' field in profile.
 
  


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
starting wireless at boot up angryfirelord Linux - Wireless Networking 2 07-25-2006 01:46 PM
starting wireless after boot philosophe Mandriva 1 12-15-2005 03:01 PM
starting network device at boot afrodocter Linux - Software 2 06-18-2004 02:51 PM
Starting wireless card on boot Jose Muņiz Linux - Hardware 2 05-13-2004 09:24 AM
starting wireless network Harpune Linux - Wireless Networking 1 09-11-2003 09:20 PM

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

All times are GMT -5. The time now is 07:59 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