- /sbin/ifconfig $ETH_DEVICE >& /dev/null && continue
- TIMEOUT=$(($TIMEOUT-1))
- [ $TIMEOUT -le 0 ] && net_init_failed
+ if /sbin/ifconfig $ETH_DEVICE >& /dev/null; then
+ echo "pl_netinit: device present $ETH_DEVICE, proceeding (${COUNTER}s/${ALLOW}s)"
+ break
+ fi
+ echo $(date "+%H:%M:%S") " pl_netinit: waiting for device $ETH_DEVICE,${COUNTER}s/${ALLOW}s"
+ COUNTER=$(($COUNTER+1))
+ [ $COUNTER -ge $ALLOW ] && net_init_failed