connman: fix wait_for_network function

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-08-27 13:34:22 +02:00
parent 562fccfcf1
commit 451139eed8

View File

@ -6,7 +6,8 @@
################################################################################
wait_for_network () {
while [ $(ifconfig | grep -c ^eth) = 0 -o $(ifconfig | grep -c ^wlan) = 0 ]; do
while [ $(ifconfig | grep -c ^eth) = 0 ]; do
usleep 200000
done
usleep 500000
}