From: Eric Edgar Date: Mon, 20 Jun 2005 15:42:25 +0000 (+0000) Subject: Fix genkernel crash when .config is present and testing for Localversion info on... X-Git-Tag: v3.4.10.902~539 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4c03a31600efca241ae8a11268ebe4f6cd79e123;p=genkernel.git 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 --- 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