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 03-23-2007, 02: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, 06:59 AM   #2
saavik
Member
 
Registered: Nov 2001
Location: NRW, Germany
Distribution: SLES / FC/ OES / CentOS
Posts: 614

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, 07:05 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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, 05: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, 03:45 AM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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, 07: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



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

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

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