Skip to content

Commit

Permalink
commit 3bef293 from parent
Browse files Browse the repository at this point in the history
  • Loading branch information
crbaird committed Mar 3, 2017
1 parent c128d71 commit 49a8055
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions provision/initramfs/capabilities/transport-http/wwgetfiles
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ WWGETFILES_INTERVAL=${WWGETFILES_INTERVAL:-180}

if [ -n "$WWGETFILES_INTERVAL" -a $WWGETFILES_INTERVAL -gt 0 ];then
if [ -n "$RANDOM" -a ! -f "/init" ]; then
SLEEPTIME=`expr $RANDOM % $WWGETFILES_INTERVAL`
sleep $SLEEPTIME
if [ -z "$SLEEPTIME" ]; then
SLEEPTIME=`expr $RANDOM % $WWGETFILES_INTERVAL`
fi
sleep $SLEEPTIME
fi
fi

Expand Down

0 comments on commit 49a8055

Please sign in to comment.