Fix leftover of problem with missing .config file (bug #271528)

cleanup-cruft
Sebastian Pipping 14 years ago
parent c1991d98bf
commit afe2f15328

@ -1,6 +1,7 @@
#!/bin/bash
# $Id$
# Fills variable KERNEL_CONFIG
determine_config_file() {
if [ "${CMD_KERNEL_CONFIG}" != "" ]
then

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

Loading…
Cancel
Save