diff --git a/packages/network/connman/profile.d/21-connman.conf b/packages/network/connman/profile.d/21-connman.conf index 262ea9bb50..78ec568298 100644 --- a/packages/network/connman/profile.d/21-connman.conf +++ b/packages/network/connman/profile.d/21-connman.conf @@ -21,16 +21,16 @@ wait_for_inet_addr () { if [ -f $CONFIG_CACHE/openelec/network_wait ]; then . $CONFIG_CACHE/openelec/network_wait + fi - if [ "$WAIT_NETWORK" = "true" ] ; then - progress "Wait for network" - [ -z "$WAIT_NETWORK_TIME" ] && WAIT_NETWORK_TIME=10 - LOOP_COUNT=$((WAIT_NETWORK_TIME * 5)) - for i in $(seq 1 $LOOP_COUNT) ; do - cnt=$(ifconfig | sed -e '/inet addr:/!d' -e '/127.0.0.1/d' |wc -l) - [ $cnt -gt 0 ] && break - usleep 200000 - done - fi + 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)) + for i in $(seq 1 $LOOP_COUNT) ; do + cnt=$(ifconfig | sed -e '/inet addr:/!d' -e '/127.0.0.1/d' |wc -l) + [ $cnt -gt 0 ] && break + usleep 200000 + done fi }