summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorahpnils2015-08-28 09:54:29 +0200
committerahpnils2015-08-28 09:54:29 +0200
commit1cabf5d265cd4c4139cd679cc212d6ead845081a (patch)
tree858e2c445f693da4cdfc21e8963b47f0af06d3b9
parent6ca6e29cff2d5ceb950e2091b04162d21805c113 (diff)
try to manually sync with upstream
-rwxr-xr-xphpmalwarefinder26
1 files changed, 4 insertions, 22 deletions
diff --git a/phpmalwarefinder b/phpmalwarefinder
index 9c4daa4..1fbe4cf 100755
--- a/phpmalwarefinder
+++ b/phpmalwarefinder
@@ -7,24 +7,12 @@ NICE_BIN=$(which nice)
7 7
8if [ ! -f "$YARA" ] 8if [ ! -f "$YARA" ]
9then 9then
10 YARA='./yara' 10 YARA='./yara'
11fi 11fi
12 12
13if [ ! -f "$CONFIG_PATH" ] 13if [ ! -f "$CONFIG_PATH" ]
14then 14then
15 CONFIG_PATH='./malwares.yara' 15 CONFIG_PATH='./malwares.yara'
16fi
17
18if [ -f "${IONICE_BIN}" ]
19then
20 NICE=${IONICE_BIN}
21 NICE_OPTS="-c 3"
22else
23 if [ -f "${NICE_BIN}" ]
24 then
25 NICE=${NICE_BIN}
26 NICE_OPTS="-n 20"
27 fi
28fi 16fi
29 17
30if [ -f "${IONICE_BIN}" ] 18if [ -f "${IONICE_BIN}" ]
@@ -85,16 +73,10 @@ then
85 exit 1 73 exit 1
86fi 74fi
87 75
88if [ ! -e ${NICE} ]
89then
90 echo "no nice programe available. PLease install ionice or nice."
91 exit 1
92fi
93
94if [ -z $@ ] 76if [ -z $@ ]
95then 77then
96 show_help 78 show_help
97 exit 1 79 exit 1
98fi 80fi
99 81
100if [ ! -e ${NICE} ] 82if [ ! -e ${NICE} ]