connman: add wait_for_network function

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-08-24 00:15:56 +02:00
parent ca2a677673
commit aaf86e5458

View File

@ -0,0 +1,12 @@
################################################################################
# connman environment variables.
#
# This file contains non-OpenELEC evironment variables as well as OpenELEC
# evironment variables that are not user defined.
################################################################################
wait_for_network () {
while [ $(ifconfig | grep -c ^eth) = 0 -o $(ifconfig | grep -c ^wlan) = 0 ]; do
usleep 200000
done
}