Update of /cvsroot/devil-linux/build/scripts/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8795/scripts/scripts
Modified Files:
clamav
Log Message:
- clamav prints success if database was updated or is up-to-date (Heiko /
Roland Pabel)
- cosmetic fixes of boot message (Heiko / Roland Pabel)
Index: clamav
===================================================================
RCS file: /cvsroot/devil-linux/build/scripts/scripts/clamav,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- clamav 2 Oct 2003 00:19:47 -0000 1.5
+++ clamav 2 Jul 2004 01:40:42 -0000 1.6
@@ -49,8 +49,14 @@
if [ "$UPDATE_CLAMAV" = "yes" ]; then
test -n "$UPDATE_CLAMAV_USER" && PARAM="--proxy-user $UPDATE_CLAMAV_USER"
test -n "$UPDATE_CLAMAV_PROXY" && PARAM="$PARAM --http-proxy $UPDATE_CLAMAV_PROXY"
- echo "Updating ClamAV Virus signatures: "
+ echo -n "Updating ClamAV Virus signatures: "
/usr/bin/freshclam --quiet -l /var/log/clam-update.log $PARAM
+ # exit codes 0 & 1 indicate success
+ if [ $? -lt 2 ]; then
+ print_status success
+ else
+ print_status failure
+ fi
fi
echo -n "Starting $NAME: "
loadproc $DAEMON $PARAMETER
|