connman: add option to force wait_for_inet_addr even if not configured in oe addon

This commit is contained in:
Stefan Saraev 2013-07-21 19:40:22 +03:00
parent c369d5f491
commit ed5c350667

View File

@ -21,8 +21,9 @@
wait_for_inet_addr () {
if [ -f $CONFIG_CACHE/openelec/network_wait ]; then
. $CONFIG_CACHE/openelec/network_wait
fi
if [ "$WAIT_NETWORK" = "true" ] ; then
if [ "$WAIT_NETWORK" = "true" -o "$1" == "force" ] ; then
progress "Wait for network"
[ -z "$WAIT_NETWORK_TIME" ] && WAIT_NETWORK_TIME=10
LOOP_COUNT=$((WAIT_NETWORK_TIME * 5))
@ -32,5 +33,4 @@ wait_for_inet_addr () {
usleep 200000
done
fi
fi
}