LinuxQuestions.org
Review your favorite Linux distribution.
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 03-23-2007, 03:03 AM   #1
nrsorte
LQ Newbie
 
Registered: Jan 2007
Posts: 4

Rep: Reputation: 0
want to start script when wlan interface goes up


Hi,

I am writing a script to configure my wireless wlan settings. What should I do to automate it so that this script will run whenever wlan goes up. Please anyone guide me for this.

Thanks in advance.
Namrata
 
Old 03-24-2007, 07:59 AM   #2
saavik
Member
 
Registered: Nov 2001
Location: NRW, Germany
Distribution: SLES11 / FC20/ OES / CentOS
Posts: 606

Rep: Reputation: 32
Well I am not really sure what and when you want to run the script but maybe the search for ip-up.local could help.

In this script you can add things like mailing your actually ip.

If this does not help you may post some more infos.
 
Old 03-24-2007, 08:05 AM   #3
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
Putting your distro in your profile will help get more accurate responses. Some distros use certain config files and scripts that may be a better fit toward a solution.
 
Old 03-24-2007, 06:48 PM   #4
tommosimmo
LQ Newbie
 
Registered: Mar 2007
Posts: 6

Rep: Reputation: 0
Hi there,

Try editing/making your /etc/sysconfig/network-scripts/ifcfg-interfacename file to something like;

TYPE=Wireless
DEVICE=device name here
HWADDR=
BOOTPROTO=dhcp
GATEWAY=ap's ip address here
DOMAIN=
ONBOOT=yes (if you want it to try and connect at boottime)
ONHOTPLUG=no
USERCTL=yes (Allows all users to start/stop the connection)
IPV6INIT=no
PEERDNS=no
ESSID=The Ap's SSID here.
CHANNEL=<the default AP channel here>
MODE=Auto
RATE=Auto

BTW, What distro and hardware are you using?

Cheers, and good luck.
Tom
 
Old 03-26-2007, 04:45 AM   #5
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
For SuSE, the same config scripts are in /etc/sysconfig/network/. Some distro's may not have anything similar and you need to produce a script with iwconfig commands. That's why knowing the distro helps, and a logical place for it is in the profile instead of having to repeat it on every post.
 
Old 03-26-2007, 08:24 AM   #6
nrsorte
LQ Newbie
 
Registered: Jan 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Hi,

I have Linux-Pebble installed on my router boards and on them I want to run a script whenever my wlan goes up. After this in script I want to analyse wireless link status. Is it possible to do so on this Pebble? If so please could you guide me for the same.

Namrata
 
  


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
ma111 adapter intall problem,wlan:unknown interface xiaoxiaoada Linux - Wireless Networking 1 12-27-2006 07:25 PM
rt2500 driver - no wlan interface Ephracis Linux - Hardware 2 09-26-2006 06:52 PM
Shell script to setup wlan Aidan81 Linux - Newbie 7 02-20-2005 04:50 PM
atml0 wlan interface :: 3Com 3CRSHPW_96 Tero Linux - Wireless Networking 6 09-17-2004 02:38 PM
Recommendations wanted for USB WLAN interface Cyclo Linux - Hardware 0 09-07-2003 05:03 PM


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