Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.


  Search this Thread
Old 05-30-2006, 02:45 PM   #1
LQ Newbie
Registered: Oct 2004
Distribution: Debian Wheezy
Posts: 27

Rep: Reputation: 1
wireless WEP

Hi, I have a problem with the WEP configuration on my wireless network. First of all I have a Debian Sarge and MadWiFi driver already installed and working. I set up the key with iwconfig:

iwconfig ath0 key s:Password

and it works...but then, when I reboot my pc, the configuration is cleared, so i have to write again the config. Is there another way to save the key? I tried with the waproamd daemon and writing the key in the /etc/network/interface file, but it doesn't work.


Last edited by lord_shadow; 05-30-2006 at 02:48 PM.
Old 05-30-2006, 03:04 PM   #2
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
You can create a script to setup the wireless, then have it executed at boot by following the instructions in the Debian FAQ:

10.6 It looks as if Debian does not use rc.local to customize the boot process; what facilities are provided?

Suppose a system needs to execute script foo on start-up, or on entry to a particular (System V) runlevel. Then the system administrator should:

* Enter the script foo into the directory /etc/init.d/.

* Run the Debian command update-rc.d with appropriate arguments, to set up links between the (command-line-specified) directories rc?.d and /etc/init.d/foo. Here, '?' is a number from 0 through 6 and corresponds to each of the System V runlevels.

* Reboot the system.

The command update-rc.d will set up links between files in the directories rc?.d and the script in /etc/init.d/. Each link will begin with a 'S' or a 'K', followed by a number, followed by the name of the script. Scripts beginning with 'S' in /etc/rcN.d/ are executed when runlevel N is entered. Scripts beginning with a 'K' are executed when leaving runlevel N.

One might, for example, cause the script foo to execute at boot-up, by putting it in /etc/init.d/ and installing the links with update-rc.d foo defaults 19. The argument 'defaults' refers to the default runlevels, which are 2 through 5. The argument '19' ensures that foo is called before any scripts containing numbers 20 or larger.
Old 05-30-2006, 03:20 PM   #3
LQ Newbie
Registered: Oct 2004
Distribution: Debian Wheezy
Posts: 27

Original Poster
Rep: Reputation: 1

thank you very much, it works ok


boot, debian, faq, init, script, wireless

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 WEP encryption chris71mach1 Linux - Security 3 05-25-2007 09:41 PM
rc.wireless.conf WEP bobby_hawk Linux - Wireless Networking 1 02-04-2006 09:03 AM
Associating wireless with no WEP kellinjar Linux - Wireless Networking 2 01-29-2006 01:01 PM
Wireless won't work with WEP jdudley2 Linux - Wireless Networking 3 05-25-2005 06:33 PM
Wireless with WEP in Suse 9 jbclarkman SUSE / openSUSE 1 01-27-2005 09:08 AM > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 11:48 AM.

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