Lines 1-12
Link Here
|
1 |
#!/bin/bash |
1 |
#!/bin/bash |
2 |
# $Header: /var/cvsroot/gentoo-x86/app-forensics/rkhunter/files/rkhunter.cron,v 1.3 2005/09/02 09:58:35 ka0ttic Exp $ |
2 |
# $Header: $ |
3 |
# original author: Aaron Walker <ka0ttic@gentoo.org> |
3 |
# original author: Aaron Walker <ka0ttic@gentoo.org> |
4 |
|
4 |
|
5 |
########################## Begin Configuration ############################### |
5 |
########################## Begin Configuration ############################### |
6 |
|
6 |
|
7 |
# Default options - more options may be added depending on the |
7 |
# Default options - more options may be added depending on the |
8 |
# configuration variables you set below |
8 |
# configuration variables you set below |
9 |
RKHUNTER_OPTS="-c --cronjob --skip-keypress" |
9 |
# --cronjob implies -c, --nocolor, --sk |
|
|
10 |
RKHUNTER_OPTS="--cronjob --summary" |
10 |
|
11 |
|
11 |
# Set this to 'yes' to enable ; this script does nothing otherwise |
12 |
# Set this to 'yes' to enable ; this script does nothing otherwise |
12 |
ENABLE=no |
13 |
ENABLE=no |
Lines 60-66
fi
Link Here
|
60 |
|
61 |
|
61 |
# moved this out of config section since it'll |
62 |
# moved this out of config section since it'll |
62 |
# probably never need to be changed |
63 |
# probably never need to be changed |
63 |
RKHUNTER_EXEC="/usr/bin/rkhunter" |
64 |
RKHUNTER_EXEC="/usr/sbin/rkhunter" |
64 |
|
65 |
|
65 |
# sanity check |
66 |
# sanity check |
66 |
if [[ ! -x "${RKHUNTER_EXEC}" ]] ; then |
67 |
if [[ ! -x "${RKHUNTER_EXEC}" ]] ; then |
Lines 91-99
case "${VERBOSITY}" in
Link Here
|
91 |
# warnings and errors only |
92 |
# warnings and errors only |
92 |
1) RKHUNTER_OPTS="${RKHUNTER_OPTS} --quiet" ;; |
93 |
1) RKHUNTER_OPTS="${RKHUNTER_OPTS} --quiet" ;; |
93 |
# default rkhunter output (no extra options) |
94 |
# default rkhunter output (no extra options) |
94 |
2) ;; |
95 |
# 2) ;; |
95 |
# default to option 3 (report-mode) |
96 |
# default to option 3 |
96 |
*) RKHUNTER_OPTS="${RKHUNTER_OPTS} --report-mode" ;; |
97 |
*) ;; |
97 |
esac |
98 |
esac |
98 |
|
99 |
|
99 |
# save old log |
100 |
# save old log |