From 4eef0b8874bcdd11cfbc8af9138ebdd6310d6b5e Mon Sep 17 00:00:00 2001 From: hjp Date: Tue, 8 Feb 2000 17:07:38 +0000 Subject: [PATCH] Fixed configure to check for "1k-blocks" as well as "1024-blocks" Fixed lots of typos in configure --- quotacheck/configure | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/quotacheck/configure b/quotacheck/configure index 2ca8957..c8e9037 100755 --- a/quotacheck/configure +++ b/quotacheck/configure @@ -18,7 +18,7 @@ do done if [ -z "$perl" ] then - could not find a working perl command, sorry. + echo could not find a working perl command, sorry. exit 1 fi 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 do 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 echo $i works df="$i" @@ -46,7 +46,7 @@ do done if [ -z "$df" ] then - could not find a working df command, sorry. + echo could not find a working df command, sorry. exit 1 fi echo " -e 's,@@@df@@@,$df,g' \\" >> customize @@ -69,7 +69,7 @@ do done if [ -z "$repquota" ] then - could not find a working repquota command, sorry. + echo could not find a working repquota command, sorry. exit 1 fi echo " -e 's,@@@repquota@@@,$repquota,g' \\" >> customize @@ -98,8 +98,14 @@ EOF done if [ -z "$sendmail" ] then - could not find a working sendmail command, sorry. + echo could not find a working sendmail command, sorry. exit 1 fi echo " -e 's,@@@sendmail@@@,$sendmail,g' \\" >> customize + + +################################################################ +# finish: +# add a blank line to customize +echo >> customize