linkchecker/scripts/resources.sh
calvin dbb498a395 Add virus checking
New option --scan-virus to check the content of URLs for
viruses with ClamAV.


git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3753 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2008-05-20 08:57:37 +00:00

21 lines
481 B
Bash
Executable file

#!/bin/sh
# network device, change as appropriate
if ping -c 4 www.debian.org >/dev/null 2>&1; then
echo "--resource=network"
fi
if msgfmt -V > /dev/null 2>&1; then
echo "--resource=msgfmt"
fi
os=`python -c "import os; print os.name"`
if [ "x$os" = "xposix" ]; then
echo "--resource=posix"
fi
SOCK=`grep LocalSocket /etc/clamav/clamd.conf | awk '{print $2;}'`
if test -n $SOCK; then
if waitfor -w 1 unix:"$SOCK"; then
echo "--resource=clamav"
fi
fi