Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 02-25-2008, 03:43 AM   #1
Registered: May 2004
Location: Italy
Posts: 70

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


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.


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

All times are GMT -5. The time now is 07:52 PM.

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