#!/bin/sh # # $FreeBSD$ # # This is a maintenance shell script for the rkhunter security tool. # You can enable this script in /etc/periodic.conf file by putting these lines into it: # daily_rkhunter_update_enable="YES" # daily_rkhunter_update_flags="--update --nocolors" # daily_rkhunter_check_enable="YES" # daily_rkhunter_check_flags="--checkall --nocolors --skip-keypress" # # Written by: Gabor Kovesdan if [ -r /etc/defaults/periodic.conf ]; then . /etc/defaults/periodic.conf source_periodic_confs fi : ${daily_rkhunter_update_flags="--update --nocolors"} : ${daily_rkhunter_check_flags="--checkall --nocolors --skip-keypress"} case "$daily_rkhunter_update_enable" in [Yy][Ee][Ss]) echo "" echo "Updating the rkhunter database..." %%PREFIX%%/bin/rkhunter ${daily_rkhunter_update_flags} ;; esac case "$daily_rkhunter_check_enable" in [Yy][Ee][Ss]) echo "" echo "Running rkhunter..." %%PREFIX%%/bin/rkhunter ${daily_rkhunter_check_flags} ;; esac