How to know if a wireless card is activated or not???
Linux - Wireless NetworkingThis 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.
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.
What distro do you have? In Debian and its derivatives, there is a file /etc/network/interfaces that you can edit to specify happens when the interface is brought up. You can try iwconfig to report on the status of the wireless interfaces.
If cat fails, It means that the device is down
If cat spits out a '0' zero it means it is up but not connected to a network
If cat spits out a '1' one it means it is up and connected to a network
Code:
cat /sys/class/net/$interface/carrier 1> /dev/null 2> /dev/null || echo "Your interface $interface is down.
cat /sys/class/net/$interface/carrier 1> /dev/null 2> /dev/null && echo "Your interface $interface is up.
if [ `cat /sys/class/net/$interface/carrier` -eq 1 ]; then echo "Your interface $interface is connected."; fi
if [ `cat /sys/class/net/$interface/carrier` -eq 0 ]; then echo "Your interface $interface is up but not connected."; fi
Being that this is linux. There are 100 different ways to get this information from other sys files in possibly better ways.
Can you post the contents of /etc/network/interfaces?
I cannot find the file you specified....
However the following files seem similar..
/etc/network
Code:
#
# networks This file describes a number of netname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
#
loopback 127.0.0.0
link-local 169.254.0.0
# End.
openSUSE doesn't have a /etc/network/interfaces file - that's only in Debian-based distributions.
Instead, open YaST, find the network setup. If it's not getting started on boot, it's not configured. Configure the card to use DHCP, and you should be fine.
openSUSE doesn't have a /etc/network/interfaces file - that's only in Debian-based distributions.
Instead, open YaST, find the network setup. If it's not getting started on boot, it's not configured. Configure the card to use DHCP, and you should be fine.
The wireless card is wrongly identified by Yast..... i am using the wireless card after manually installing the driver.... it seems that none of the wizards work with the card... even network manager does not.... so i was wondering if there is something that can be done without wizards....
I read that creation of a script will init.d do.... can somebody point me to a tutorial??
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.