Lines 16-21
Link Here
|
16 |
source_periodic_confs |
16 |
source_periodic_confs |
17 |
fi |
17 |
fi |
18 |
|
18 |
|
|
|
19 |
SLEEP=/bin/sleep |
20 |
JOT=/usr/bin/jot |
21 |
|
22 |
random() { |
23 |
${JOT} -r 1 0 900 |
24 |
} |
25 |
|
19 |
: ${daily_rkhunter_update_flags="--update --nocolors"} |
26 |
: ${daily_rkhunter_update_flags="--update --nocolors"} |
20 |
: ${daily_rkhunter_check_flags="--checkall --nocolors --skip-keypress"} |
27 |
: ${daily_rkhunter_check_flags="--checkall --nocolors --skip-keypress"} |
21 |
|
28 |
|
Lines 24-29
Link Here
|
24 |
|
31 |
|
25 |
echo "" |
32 |
echo "" |
26 |
echo "Updating the rkhunter database..." |
33 |
echo "Updating the rkhunter database..." |
|
|
34 |
# When non-interactive, sleep to reduce congestion on rkhunter site |
35 |
if [ "$1" != -nodelay ]; then |
36 |
# In FreeBSD 12.0 the anticongestion function should be used |
37 |
# instead of a hard-coded sleep |
38 |
if [ -n "$anticongestion_sleeptime" ]; then |
39 |
anticongestion |
40 |
else |
41 |
${SLEEP} $(random) |
42 |
fi |
43 |
fi |
27 |
%%PREFIX%%/bin/rkhunter ${daily_rkhunter_update_flags} |
44 |
%%PREFIX%%/bin/rkhunter ${daily_rkhunter_update_flags} |
28 |
;; |
45 |
;; |
29 |
esac |
46 |
esac |