check for df changed - rebuilt.

This commit is contained in:
hjp 2005-03-29 10:03:14 +00:00
parent e36613df54
commit 060b616766
1 changed files with 8 additions and 8 deletions

16
quotacheck/configure vendored
View File

@ -30,14 +30,14 @@ echo " -e 's,@@@perl@@@,$perl,g' \\" >> customize.$$
for i in /bin/df /usr/bin/df /usr/bin/bdf /usr/sbin/df /usr/local/bin/df for i in /bin/df /usr/bin/df /usr/bin/bdf /usr/sbin/df /usr/local/bin/df
do do
a=`$i | awk 'NR == 1 {print $2}'` a=`$i | awk 'NR == 1 {print $2}'`
if [ "$a" = "kbytes" -o "$a" = "1024-blocks" ] if [ "$a" = "kbytes" -o "$a" = "1024-blocks" -o "$a" = "1k-blocks" ]
then then
echo $i works echo $i works
df="$i" df="$i"
break break
fi fi
a=`$i -k | awk 'NR == 1 {print $2}'` a=`$i -k | awk 'NR == 1 {print $2}'`
if [ "$a" = "kbytes" -o "$a" = "1024-blocks" ] if [ "$a" = "kbytes" -o "$a" = "1024-blocks" -o "$a" = "1k-blocks" ]
then then
echo $i -k works echo $i -k works
df="$i -k" df="$i -k"
@ -50,8 +50,6 @@ then
exit 1 exit 1
fi fi
echo " -e 's,@@@df@@@,$df,g' \\" >> customize.$$ echo " -e 's,@@@df@@@,$df,g' \\" >> customize.$$
################################################################ ################################################################
# find repquota: # find repquota:
# We don't try to check whether the output is useful, # We don't try to check whether the output is useful,
@ -104,7 +102,7 @@ fi
echo " -e 's,@@@sendmail@@@,$sendmail,g' \\" >> customize.$$ echo " -e 's,@@@sendmail@@@,$sendmail,g' \\" >> customize.$$
################################################################ ################################################################
# $Id: configure,v 1.4 2004-11-30 09:27:01 hjp Exp $ # $Id: configure,v 1.5 2005-03-29 10:03:14 hjp Exp $
# find scp command # find scp command
# #
touch scp.test.$$ touch scp.test.$$
@ -131,9 +129,11 @@ fi
echo " -e 's,@@@scp@@@,$scp,g' \\" >> customize.$$ echo " -e 's,@@@scp@@@,$scp,g' \\" >> customize.$$
# $Log: configure,v $ # $Log: configure,v $
# Revision 1.4 2004-11-30 09:27:01 hjp # Revision 1.5 2005-03-29 10:03:14 hjp
# Add check for scp to configure. Added rules to makefile to automatically # check for df changed - rebuilt.
# rebuild configure. #
# Revision 1.1 2005/01/07 16:01:34 hjp
# Added test for scp.
# #
################################################################ ################################################################
# finish # finish