Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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.
|
 |
04-25-2014, 05:47 AM
|
#1
|
Member
Registered: Apr 2014
Posts: 276
Rep: 
|
wlan0 becomes unknown interface: No such
I have a script in which I bring down & up wlan0.
After about 4-6 passes I get the following error both from the script and when I issue the same command (ifconfig wlan0 up) on the command line:
ifconfig wlan0 up
wlan0: unknown interface: No such device
In the script just for cleanliness I use:
rm -f /var/run/wpa_supplicant/wlan0
Does someone have an explanation why wlan0 becomes unknown?
Thanks
|
|
|
04-26-2014, 03:22 PM
|
#2
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
why do you remove that file?
maybe it would work better if you took that bit out of your script.
what's that script doing anyway?
and why are you constantly connecting and disconnecting from wlan?
maybe you should explain your whole setup in more detail.
|
|
|
04-26-2014, 09:30 PM
|
#3
|
Member
Registered: Apr 2014
Posts: 276
Original Poster
Rep: 
|
The file is removed because with repeated use it gets corrupted by the system (not by the script).
The script is designed to find APs, display pertinent info on each, and connect via ad-hoc, WEP, WPA, or WPA2 proviso there is permission of course. It is also a fun exercise in scripting and learning about wifi.
I am disconnecting obviously because I am testing.
Last edited by nix84; 04-26-2014 at 09:31 PM.
|
|
|
04-27-2014, 05:16 AM
|
#4
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
Quote:
Originally Posted by nix84
The file is removed because with repeated use it gets corrupted by the system
|
how did you deduce that? if that were true then i'd say your actual problem is elsewhere in your system.
Quote:
The script is designed to find APs, display pertinent info on each, and connect via ad-hoc, WEP, WPA, or WPA2 proviso there is permission of course. It is also a fun exercise in scripting and learning about wifi.
|
yeah, it sounds like the kind of fun destined to bring down your system. i mean why would you want to constantly connect, disconnect and reconnect to different access points in a real situation?
|
|
|
All times are GMT -5. The time now is 08:41 PM.
|
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
|
|