From: Sebastian Pipping Date: Thu, 20 Jan 2011 01:12:38 +0000 (+0100) Subject: Fix leftover of problem with missing .config file (bug #271528) X-Git-Tag: v3.4.12~1^2~13 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=afe2f15328f22f871d317bf03badbdb9b82550d5;p=genkernel.git Fix leftover of problem with missing .config file (bug #271528) --- diff --git a/gen_configkernel.sh b/gen_configkernel.sh index b562287..990975c 100755 --- a/gen_configkernel.sh +++ b/gen_configkernel.sh @@ -1,6 +1,7 @@ #!/bin/bash # $Id$ +# Fills variable KERNEL_CONFIG determine_config_file() { if [ "${CMD_KERNEL_CONFIG}" != "" ] then diff --git a/gen_determineargs.sh b/gen_determineargs.sh index 548f55b..a55ccec 100755 --- a/gen_determineargs.sh +++ b/gen_determineargs.sh @@ -58,7 +58,8 @@ get_KV() { LOV=`echo ${UTS_RELEASE}|sed -e "s/${VER}.${PAT}.${SUB}${EXV}//"` KV=${VER}.${PAT}.${SUB}${EXV}${LOV} else - LCV=`grep ^CONFIG_LOCALVERSION= ${KERNEL_DIR}/.config | sed -r -e "s/.*=\"(.*)\"/\1/"` + determine_config_file + LCV=`grep ^CONFIG_LOCALVERSION= "${KERNEL_CONFIG}" | sed -r -e "s/.*=\"(.*)\"/\1/"` KV=${VER}.${PAT}.${SUB}${EXV}${LCV} fi fi