diff --git a/src/Misc/layoutroot/run-helper.sh.template b/src/Misc/layoutroot/run-helper.sh.template index 7334ec9812f..2438ede0958 100755 --- a/src/Misc/layoutroot/run-helper.sh.template +++ b/src/Misc/layoutroot/run-helper.sh.template @@ -11,19 +11,10 @@ fi shopt -s nocasematch safe_sleep() { - if [ ! -x "$(command -v sleep)" ]; then - if [ ! -x "$(command -v ping)" ]; then - COUNT="0" - while [[ $COUNT != 5000 ]]; do - echo "SLEEP" > /dev/null - COUNT=$[$COUNT+1] - done - else - ping -c 5 127.0.0.1 > /dev/null - fi - else - sleep 5 - fi + SECONDS=0 + while [[ $SECONDS != 5 ]]; do + : + done } SOURCE="${BASH_SOURCE[0]}"