diff --git a/packages/network/connman/profile.d/connman.conf b/packages/network/connman/profile.d/connman.conf index fdcce275e1..7c24b7e46b 100644 --- a/packages/network/connman/profile.d/connman.conf +++ b/packages/network/connman/profile.d/connman.conf @@ -25,7 +25,7 @@ wait_for_inet_addr () { if [ "$WAIT_NETWORK" = "true" ] ; then progress "Wait for network" [ -z "$WAIT_NETWORK_TIME" ] && WAIT_NETWORK_TIME=10 - LOOP_COUNT=$[$WAIT_NETWORK_TIME * 5] + 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