LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 11-19-2008, 08:57 AM   #1
firewiz87
Member
 
Registered: Jan 2006
Distribution: OpenSUSE 11.2, OpenSUSE 11.3,Arch
Posts: 240

Rep: Reputation: 37
How to know if a wireless card is activated or not???


I have a D-link DWL G510 H/W ver: C2 wireless card...... its now working, after installing the Ralink drivers....

I think it never gets activated on boot.... I always have to do the

Code:
#ifconfig wlan0 up
command before i connect to my wireless network using Rutilt....

I would like to know if there is a command that will report the state of the wireless card (up/down)

I would also like to know how to bring up the device and then make it connect to my home network on boot.....

Thanks in advance!!
 
Old 11-19-2008, 01:35 PM   #2
pentode
Member
 
Registered: Dec 2005
Location: Oregon
Distribution: Debian Testing
Posts: 488

Rep: Reputation: 38
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.
 
Old 11-19-2008, 02:19 PM   #3
firewiz87
Member
 
Registered: Jan 2006
Distribution: OpenSUSE 11.2, OpenSUSE 11.3,Arch
Posts: 240

Original Poster
Rep: Reputation: 37
I am using OpenSUSE 11.0
 
Old 11-19-2008, 11:48 PM   #4
firewiz87
Member
 
Registered: Jan 2006
Distribution: OpenSUSE 11.2, OpenSUSE 11.3,Arch
Posts: 240

Original Poster
Rep: Reputation: 37
What changes do i have to make to the /etc/network/interfaces file??
 
Old 11-20-2008, 06:24 PM   #5
pentode
Member
 
Registered: Dec 2005
Location: Oregon
Distribution: Debian Testing
Posts: 488

Rep: Reputation: 38
Can you post the contents of /etc/network/interfaces?
 
Old 11-22-2008, 12:55 AM   #6
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Blog Entries: 32

Rep: Reputation: 111Reputation: 111
Try this...

cat /sys/class/net/wlan0/carrier


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.

Last edited by lumak; 11-22-2008 at 12:57 AM.
 
Old 11-23-2008, 12:05 AM   #7
firewiz87
Member
 
Registered: Jan 2006
Distribution: OpenSUSE 11.2, OpenSUSE 11.3,Arch
Posts: 240

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by pentode View Post
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.
 
Old 11-24-2008, 09:16 PM   #8
AVT
LQ Newbie
 
Registered: Aug 2008
Posts: 10

Rep: Reputation: 0
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.

Last edited by AVT; 11-24-2008 at 09:23 PM.
 
Old 12-05-2008, 11:15 AM   #9
firewiz87
Member
 
Registered: Jan 2006
Distribution: OpenSUSE 11.2, OpenSUSE 11.3,Arch
Posts: 240

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by AVT View Post
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??
 
  


Reply



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
Activated my wireless device (Intel Proset 2200B/G) but still can't browse to a site robchou Linux - Laptop and Netbook 1 02-27-2007 08:35 PM
Broadcom wireless card not being activated 144419855310001 Fedora 0 01-15-2007 07:17 AM
Wireless activated but no connection Hit3k Linux - Wireless Networking 1 05-28-2006 08:46 PM
i have an activated ethernet card but cannot get internet service whodunnit Fedora 8 04-18-2004 09:19 AM
3Com Ethernet Card - Not activated SubKamran Linux - Hardware 12 03-13-2003 05:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 10:45 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
Open Source Consulting | Domain Registration