#!/bin/sh

HOST_NAME=`uname -n`
if [ ! -e /opt/local/var/db/tripwire/${HOST_NAME}.twd ] ; then
	echo "** Error: Tripwire database for ${HOST_NAME} not found. **"
	echo "** Run '/opt/local/etc/tripwire/twsetup.sh' and/or '/opt/local/sbin/tripwire --init'. **"
else
	test -f /opt/local/etc/tripwire/tw.cfg && /opt/local/sbin/tripwire --check
fi

