From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 7A0691391DB for ; Sun, 16 Mar 2014 00:26:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B62D0E0ADD; Sun, 16 Mar 2014 00:26:26 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3EEAFE0ADE for ; Sun, 16 Mar 2014 00:26:26 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6F75D33F66C for ; Sun, 16 Mar 2014 00:26:25 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 90F5A188EF for ; Sun, 16 Mar 2014 00:26:22 +0000 (UTC) From: "Richard Yao" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Richard Yao" Message-ID: <1394929524.3892338864a5afa3b720569cb3ab1bb2f9ab44bf.ryao@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: / X-VCS-Repository: proj/genkernel X-VCS-Files: genkernel X-VCS-Directories: / X-VCS-Committer: ryao X-VCS-Committer-Name: Richard Yao X-VCS-Revision: 3892338864a5afa3b720569cb3ab1bb2f9ab44bf X-VCS-Branch: master Date: Sun, 16 Mar 2014 00:26:22 +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-Archives-Salt: f240dd62-8ce2-42fc-b8b9-27d136d9b61e X-Archives-Hash: a334579b7535d8d149da6c11b70c37a7 commit: 3892338864a5afa3b720569cb3ab1bb2f9ab44bf Author: Martin Dummer gmx net> AuthorDate: Tue Mar 4 07:21:03 2014 +0000 Commit: Richard Yao gentoo org> CommitDate: Sun Mar 16 00:25:24 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commit;h=38923388 Fix endless loop in gen_funcs.sh when LOGLEVEL is empty When LOGLEVEL is unset or empty then genkernel loops endlessly in gen_funcs.sh. The solution is to set a proper default loglevel in $USRBIN/genkernel. Signed-off-by: Martin Dummer gmx.net> Signed-off-by: Richard Yao gentoo.org> --- genkernel | 3 +++ 1 file changed, 3 insertions(+) diff --git a/genkernel b/genkernel index ff319f2..e555791 100755 --- a/genkernel +++ b/genkernel @@ -36,6 +36,9 @@ done _GENKERNEL_CONF=${CMD_GK_CONFIG:-/etc/genkernel.conf} source "${_GENKERNEL_CONF}" || small_die "Could not read ${_GENKERNEL_CONF}" +# set default LOGLEVEL if uninitialized +LOGLEVEL=${LOGLEVEL:-1} + # Start sourcing other scripts source ${GK_SHARE}/defaults/software.sh || small_die "Could not read ${GK_SHARE}/defaults/software.sh" source ${GK_SHARE}/gen_funcs.sh || small_die "Could not read ${GK_SHARE}/gen_funcs.sh"