From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 34F46138334 for ; Tue, 16 Jul 2019 22:46:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6D775E07F2; Tue, 16 Jul 2019 22:46:42 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 51EDAE07F2 for ; Tue, 16 Jul 2019 22:46:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E6128347D27 for ; Tue, 16 Jul 2019 22:46:40 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 74A612A5 for ; Tue, 16 Jul 2019 22:46:38 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1563317151.6561197731c3a46d849279e7530b831a401b652d.whissi@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: defaults/ X-VCS-Repository: proj/genkernel X-VCS-Files: defaults/initrd.scripts X-VCS-Directories: defaults/ X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: 6561197731c3a46d849279e7530b831a401b652d X-VCS-Branch: master Date: Tue, 16 Jul 2019 22:46:38 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 82bba857-7822-4688-9bcb-b771bd90f0ba X-Archives-Hash: 49ef25c9dc0f77673cb1ff041955e9e3 commit: 6561197731c3a46d849279e7530b831a401b652d Author: Thomas Deutschmann gentoo org> AuthorDate: Tue Jul 16 22:45:51 2019 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Tue Jul 16 22:45:51 2019 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=65611977 initrd.scripts: sdelay(): Show waiting indicator Signed-off-by: Thomas Deutschmann gentoo.org> defaults/initrd.scripts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index 4701857..e93a5ad 100644 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -1906,8 +1906,14 @@ sdelay() { # Sleep a specific number of seconds if SDELAY is set if [ -n "${SDELAY}" ] then - good_msg "Waiting ${SDELAY} seconds ..." - sleep ${SDELAY} + good_msg_n "Waiting ${SDELAY} seconds ..." + while [ ${SDELAY} -gt 0 ] + do + let SDELAY=${SDELAY}-1 + sleep 1 + printf "." + done + echo elif [ "${CDROOT}" = '1' ] then good_msg 'Hint: Use scandelay[=seconds] if your live medium is slow and boot fails'