19
19
$CHKROOTKIT $RUN_DAILY_OPTS > $LOG_DIR/log.today.raw 2>&1
20
20
# the sed expression replaces the messages about /sbin/dhclient3 /usr/sbin/dhcpd3
21
21
# with a message that is the same whatever order eth0 and eth1 were scanned
22
sed -r 's,eth(0|1)(:[0-9])?: PACKET SNIFFER\((/sbin/dhclient3|/usr/sbin/dhcpd3)\[[0-9]+\]\),eth\[0|1\]: PACKET SNIFFER\([dhclient3|dhcpd3]{PID}\),' $LOG_DIR/log.today.raw > $LOG_DIR/log.today
22
sed -r -e 's,eth(0|1)(:[0-9])?: PACKET SNIFFER\((/sbin/dhclient3|/usr/sbin/dhcpd3)\[[0-9]+\]\),eth\[0|1\]: PACKET SNIFFER\([dhclient3|dhcpd3]{PID}\),' \
23
24
if [ ! -f $LOG_DIR/log.expected ]; then
24
25
echo "ERROR: No file $LOG_DIR/log.expected"
25
26
echo "This file should contain expected output from chkrootkit"