LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 02-25-2008, 04:43 AM   #1
d1s4st3r
Member
 
Registered: May 2004
Location: Italy
Distribution: Ubuntu, Slackware, OpenBSD, PC-BSD
Posts: 68

Rep: Reputation: 15
How to automatically detect when wpa_supplicant connects to a network


Hi,

I wonder if there is a way to automatically detect when wpa_supplicant connects to a network.

Actually, when I connect to a protected network I run wpa_supplicant in background from the terminal then, when I see "Connection to blablabla..." (this may take different amounts of seconds, depending on many factors), I finally run dhclient to obtain an IP address.

I would like to make a script that does it all for me, but I need to know when wpa_supplicant is connected to run dhclient and maybe set a proxy.

I know I can use wpa_cli, but I'd like to avoid using a while loop that constantly checks if status is CONNECTED. I'd like to know if it's possible to receive some kind of notification instead.

Any help is truly appreciated.

Thank you so much.
 
  


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
New to Linux and wifi doesn't detect automatically taman Linux - Wireless Networking 0 11-25-2007 01:30 AM
hostap wpa_supplicant wifi connects but no services available KrazyKanuk Linux - Wireless Networking 2 09-17-2007 01:28 PM
Pen drive, how detect automatically dass Slackware 6 07-25-2006 07:44 AM
wpa_supplicant connects correctly only when eth0 is up... else, it loses connection electrifice Linux - Wireless Networking 3 07-23-2006 02:18 AM
Detect automatically USB flashdisk intmail Slackware 1 07-20-2005 11:17 AM


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