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
cleanup-cruft
Eric Edgar 20 years ago
parent ec7317fb6e
commit 4c03a31600

@ -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

Loading…
Cancel
Save