Thread
:
command to check if connected to wi-fi
View Single Post
teranex
2010-05-28 , 09:28
Posts: 18 | Thanked: 0 times | Joined on Jan 2010
#
1
Yesterday I installed alarmed (from extras-dev). Now i'd like to use it, amongst other things, to let gPodder download new podcasts at night.
I already found out that i can do this with
Code:
gpo update && gpo download
However, since i have a very limited 3G plan, i'd like to add a check to make sure that this is only executed when connected to wi-fi. Could somebody point me in the right direction on how i can check this? The only thing i can come up with is to do something like
Code:
sudo ifconfig wlan0 | grep <something>
to check if the wlan0 interface has an ip-address, but that seems rather hackish to me.
thx!
Quote & Reply
|
teranex
View Public Profile
Send a private message to teranex
Find all posts by teranex