From 4c03a31600efca241ae8a11268ebe4f6cd79e123 Mon Sep 17 00:00:00 2001 From: Eric Edgar Date: Mon, 20 Jun 2005 15:42:25 +0000 Subject: [PATCH] Fix genkernel crash when .config is present and testing for Localversion info on a 2.6 kernel git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@213 67a159dc-881f-0410-a524-ba9dfbe2cb84 --- gen_determineargs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen_determineargs.sh b/gen_determineargs.sh index 9225eef..b84d15e 100644 --- a/gen_determineargs.sh +++ b/gen_determineargs.sh @@ -36,7 +36,7 @@ get_KV() { PAT=`grep ^PATCHLEVEL\ \= ${KERNEL_DIR}/Makefile | awk '{ print $3 };'` SUB=`grep ^SUBLEVEL\ \= ${KERNEL_DIR}/Makefile | awk '{ print $3 };'` EXV=`grep ^EXTRAVERSION\ \= ${KERNEL_DIR}/Makefile | sed -e "s/EXTRAVERSION =//" -e "s/ //g"` - if [ "${PAT}" -gt '4' ] + if [ "${PAT}" -gt '4' -a -e ${KERNEL_DIR}/.config ] then cd ${KERNEL_DIR} compile_generic prepare kernel > /dev/null 2>&1 -- 2.26.2