![]() |
2008-03-10
, 18:19
|
|
Posts: 531 |
Thanked: 79 times |
Joined on Oct 2006
@ This side of insane, that side of genius
|
#2
|
The Following User Says Thank You to brendan For This Useful Post: | ||
![]() |
2008-03-10
, 18:34
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#3
|
/sbin/ifconfig wlan0
will give you an IP address, if you are connected. also, the RX/TX counters will not be 0. you should not need root access for this.
if [ "x`/sbin/ifconfig wlan0 |grep UP`" != x ] ; then echo 'Connection' else echo 'No connection' fi
if [ "x`/sbin/ifconfig wlan0 |grep UP`" != x ] || [ "x`/sbin/ifconfig bt0 |grep UP`" != x ] ; then echo 'Connection' else echo 'No connection' fi
The Following User Says Thank You to Benson For This Useful Post: | ||
![]() |
2008-03-10
, 18:40
|
Posts: 474 |
Thanked: 30 times |
Joined on Jan 2006
|
#4
|
/sbin/ifconfig wlan0
will give you an IP address, if you are connected. also, the RX/TX counters will not be 0. you should not need root access for this.
The Following User Says Thank You to aleksandyr For This Useful Post: | ||
![]() |
2008-03-10
, 19:24
|
|
Posts: 283 |
Thanked: 60 times |
Joined on Nov 2005
@ It's dark in here. I hear laughing.
|
#5
|
![]() |
2008-03-10
, 19:28
|
Posts: 118 |
Thanked: 26 times |
Joined on Feb 2008
|
#6
|
The Following User Says Thank You to m_stolle For This Useful Post: | ||
It's probably something in /proc...but I'm not finding it. I'm hoping this works for both wireless and mobile phone connections.
Thanks.
Edit: BTW, I DID search through the forums, but did not find anything. I'll not be surprised if someone has asked this already.