blob: 27cb92cebef2804757440858abc5d9a63ea00fed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/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
|