]> git.pld-linux.org Git - packages/chkrootkit.git/blame - chkrootkit-check
- cosmetics
[packages/chkrootkit.git] / chkrootkit-check
CommitLineData
8f805fb6
PG
1#!/bin/sh
2
3# Get service config
a513d2d4 4[ -f /etc/sysconfig/chkrootkit ] && . /etc/sysconfig/chkrootkit
8f805fb6
PG
5
6DATA=`date`
7SYSTEM=`hostname`
8
cb5b62d1 9cd /usr/bin/
9163bb1e
PG
10echo -n "Generated with: " > /var/tmp/$$
11/usr/bin/chkrootkit -V 2>> /var/tmp/$$
6f34ae1c 12/usr/bin/chkrootkit 2>&1 | /bin/egrep -v '(not (infected|found|promisc)|nothing (found|detected|deleted)|no suspect files|ROOTDIR is)' >> /var/tmp/$$
8f805fb6
PG
13LIN=`grep -c . /var/tmp/$$`
14if [ "$LIN" -gt "1" ]; then
15 mail -s "CHKROOTKIT $SYSTEM $DATA" $CHKROOTKIT_MAILTO < /var/tmp/$$
16fi
17rm -f /var/tmp/$$
This page took 0.17143 seconds and 4 git commands to generate.