Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-23-2007, 03:03 AM
|
#1
|
LQ Newbie
Registered: Jan 2007
Posts: 4
Rep:
|
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
|
|
|
03-24-2007, 07:59 AM
|
#2
|
Member
Registered: Nov 2001
Location: NRW, Germany
Distribution: SLES / FC/ OES / CentOS
Posts: 614
Rep:
|
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.
|
|
|
03-24-2007, 08:05 AM
|
#3
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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.
|
|
|
03-24-2007, 06:48 PM
|
#4
|
LQ Newbie
Registered: Mar 2007
Posts: 6
Rep:
|
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
|
|
|
03-26-2007, 04:45 AM
|
#5
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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.
|
|
|
03-26-2007, 08:24 AM
|
#6
|
LQ Newbie
Registered: Jan 2007
Posts: 4
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 07:54 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|