You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
424 B
31 lines
424 B
#!/bin/bash -v
|
|
#
|
|
# Executed from KDE Service Menu
|
|
#
|
|
|
|
# Execution starts here
|
|
if [ "$1" = "" ]; then
|
|
exit 1
|
|
fi
|
|
|
|
SCANTHIS=("$@")
|
|
|
|
until [ -z "$1" ] # Until all parameters used up...
|
|
do
|
|
if [ "$URL" = "" ]; then
|
|
URL=$1
|
|
SCANTHIS=$1
|
|
else
|
|
URL=$URL'*'$1
|
|
SCANTHIS=$SCANTHIS' '$1
|
|
fi
|
|
shift
|
|
done
|
|
|
|
if dcop `dcop|grep klamav|head -n 1` DCOPKlamscan scanURLs "$URL"; then
|
|
exit 0
|
|
else
|
|
klamav --scanthis "${SCANTHIS[@]}"
|
|
fi
|
|
|