busybox: init: remove usleep

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
This commit is contained in:
Ian Leonard
2020-06-26 21:32:49 +00:00
parent a72e31a1a2
commit 9e055544be
2 changed files with 5 additions and 5 deletions

View File

@@ -111,7 +111,7 @@ mount_common() {
mount $MOUNT_OPTIONS $1 $2 >&$SILENT_OUT 2>&1
[ "$?" -eq "0" ] && ERR_ENV=0 && break
usleep 1000000
sleep 1
done
[ "$ERR_ENV" -eq "0" ] && return 0
error "mount_common" "Could not mount $1"
@@ -442,7 +442,7 @@ do_reboot() {
/usr/bin/busybox umount /storage
fi
usleep 2000000
sleep 2
/usr/bin/busybox reboot
}
@@ -496,7 +496,7 @@ check_disks() {
if [ $i -eq 0 ]; then
progress "Device not found, continuing..."
else
usleep 500000
sleep 1
fi
elif [ $(( $FSCK_RET & 4 )) -eq 4 ]; then
# errors left