From 3ab3bf0dbcfd75b6fb50b4a1b1d433b788b157c7 Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Tue, 24 Apr 2001 17:40:45 +0000 Subject: [PATCH] This commit was generated by cvs2svn to compensate for changes in r217, which included commits to RCS files with non-trunk default branches. --- src/libafs/redhat.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/libafs/redhat.sh b/src/libafs/redhat.sh index 0d35c2a09..e213cc9cc 100755 --- a/src/libafs/redhat.sh +++ b/src/libafs/redhat.sh @@ -5,15 +5,20 @@ IBYTES="" SETATTR="" -grep i_bytes /lib/modules/$1/build/include/linux/fs.h > /dev/null +if [ -e $1/include/linux/fs.h ] ; then +grep i_bytes $1/include/linux/fs.h > /dev/null if [ $? = 0 ]; then - IBYTES="-DSTRUCT_INODE_HAS_I_BYTES=1" +IBYTES="-DSTRUCT_INODE_HAS_I_BYTES=1" fi -grep "extern int inode_setattr" /lib/modules/$1/build/include/linux/fs.h > /dev/null + +grep "extern int inode_setattr" $1/include/linux/fs.h > /dev/null if [ $? = 0 ]; then - SETATTR="-DINODE_SETATTR_NOT_VOID=1" +SETATTR="-DINODE_SETATTR_NOT_VOID=1" fi +if [ -e $2 ] ; then /bin/rm $2 +fi echo "KDEFINES = ${IBYTES} ${SETATTR}" > $2 +fi exit 0 -- 2.39.5