diff options
| author | ahpnils | 2015-08-28 09:54:29 +0200 |
|---|---|---|
| committer | ahpnils | 2015-08-28 09:54:29 +0200 |
| commit | 1cabf5d265cd4c4139cd679cc212d6ead845081a (patch) | |
| tree | 858e2c445f693da4cdfc21e8963b47f0af06d3b9 | |
| parent | 6ca6e29cff2d5ceb950e2091b04162d21805c113 (diff) | |
try to manually sync with upstream
| -rwxr-xr-x | phpmalwarefinder | 26 |
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 | ||
| 8 | if [ ! -f "$YARA" ] | 8 | if [ ! -f "$YARA" ] |
| 9 | then | 9 | then |
| 10 | YARA='./yara' | 10 | YARA='./yara' |
| 11 | fi | 11 | fi |
| 12 | 12 | ||
| 13 | if [ ! -f "$CONFIG_PATH" ] | 13 | if [ ! -f "$CONFIG_PATH" ] |
| 14 | then | 14 | then |
| 15 | CONFIG_PATH='./malwares.yara' | 15 | CONFIG_PATH='./malwares.yara' |
| 16 | fi | ||
| 17 | |||
| 18 | if [ -f "${IONICE_BIN}" ] | ||
| 19 | then | ||
| 20 | NICE=${IONICE_BIN} | ||
| 21 | NICE_OPTS="-c 3" | ||
| 22 | else | ||
| 23 | if [ -f "${NICE_BIN}" ] | ||
| 24 | then | ||
| 25 | NICE=${NICE_BIN} | ||
| 26 | NICE_OPTS="-n 20" | ||
| 27 | fi | ||
| 28 | fi | 16 | fi |
| 29 | 17 | ||
| 30 | if [ -f "${IONICE_BIN}" ] | 18 | if [ -f "${IONICE_BIN}" ] |
| @@ -85,16 +73,10 @@ then | |||
| 85 | exit 1 | 73 | exit 1 |
| 86 | fi | 74 | fi |
| 87 | 75 | ||
| 88 | if [ ! -e ${NICE} ] | ||
| 89 | then | ||
| 90 | echo "no nice programe available. PLease install ionice or nice." | ||
| 91 | exit 1 | ||
| 92 | fi | ||
| 93 | |||
| 94 | if [ -z $@ ] | 76 | if [ -z $@ ] |
| 95 | then | 77 | then |
| 96 | show_help | 78 | show_help |
| 97 | exit 1 | 79 | exit 1 |
| 98 | fi | 80 | fi |
| 99 | 81 | ||
| 100 | if [ ! -e ${NICE} ] | 82 | if [ ! -e ${NICE} ] |
