From 975946295ca4ddf45c678aa8057bca6ad08e98de Mon Sep 17 00:00:00 2001 From: David Schleef Date: Mon, 8 Jan 2001 22:02:43 +0000 Subject: [PATCH] fix versioning issues on UTS_VERSION --- scripts/dep.linux | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/scripts/dep.linux b/scripts/dep.linux index fa52ad67..25ba9b80 100755 --- a/scripts/dep.linux +++ b/scripts/dep.linux @@ -38,22 +38,27 @@ fi # # check running kernel vs. /usr/src/linux and warn if necessary # -read dummy dummy dummy2 <$LINUXDIR/include/linux/version.h -UTS_VERSION=`echo $dummy2|sed 's/"//g'` - +UTS_VERSION=$(grep UTS_RELEASE ${LINUXDIR}/include/linux/version.h| \ + sed 's/[^"]*"\(.*\)\{1\}"/\1/') echo UTS_VERSION=$UTS_VERSION >.uts_version -if [ "$(uname -r)" != "$UTS_VERSION" ] +echo "Kernel source version is ${UTS_VERSION}" + +UNAME=$(uname -r) + +if [ "${UNAME}" != "${UTS_VERSION}" ] then cat <