Fixed configure to check for "1k-blocks" as well as "1024-blocks"
Fixed lots of typos in configure
This commit is contained in:
parent
a71bee15a1
commit
4eef0b8874
|
@ -18,7 +18,7 @@ do
|
||||||
done
|
done
|
||||||
if [ -z "$perl" ]
|
if [ -z "$perl" ]
|
||||||
then
|
then
|
||||||
could not find a working perl command, sorry.
|
echo could not find a working perl command, sorry.
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo " -e 's,@@@perl@@@,$perl,g' \\" >> customize
|
echo " -e 's,@@@perl@@@,$perl,g' \\" >> customize
|
||||||
|
@ -30,7 +30,7 @@ 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"
|
||||||
|
@ -46,7 +46,7 @@ do
|
||||||
done
|
done
|
||||||
if [ -z "$df" ]
|
if [ -z "$df" ]
|
||||||
then
|
then
|
||||||
could not find a working df command, sorry.
|
echo could not find a working df command, sorry.
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo " -e 's,@@@df@@@,$df,g' \\" >> customize
|
echo " -e 's,@@@df@@@,$df,g' \\" >> customize
|
||||||
|
@ -69,7 +69,7 @@ do
|
||||||
done
|
done
|
||||||
if [ -z "$repquota" ]
|
if [ -z "$repquota" ]
|
||||||
then
|
then
|
||||||
could not find a working repquota command, sorry.
|
echo could not find a working repquota command, sorry.
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo " -e 's,@@@repquota@@@,$repquota,g' \\" >> customize
|
echo " -e 's,@@@repquota@@@,$repquota,g' \\" >> customize
|
||||||
|
@ -98,8 +98,14 @@ EOF
|
||||||
done
|
done
|
||||||
if [ -z "$sendmail" ]
|
if [ -z "$sendmail" ]
|
||||||
then
|
then
|
||||||
could not find a working sendmail command, sorry.
|
echo could not find a working sendmail command, sorry.
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo " -e 's,@@@sendmail@@@,$sendmail,g' \\" >> customize
|
echo " -e 's,@@@sendmail@@@,$sendmail,g' \\" >> customize
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
################################################################
|
||||||
|
# finish:
|
||||||
|
# add a blank line to customize
|
||||||
|
echo >> customize
|
||||||
|
|
Loading…
Reference in New Issue