#!/bin/sh

case "$1" in
    start)
	echo -n "Starting passive OS fingerprinting daemon: "
	( p0f -i ppp0 -q -l -t -R 'not src host 213.77.161.252' >> /var/log/p0f/p0f-drop 2>&1 & )
	( p0f -i ppp0 -q -l -t    'not src host 213.77.161.252' >> /var/log/p0f/p0f 2>&1 & )
	echo "pof."
	;;
    stop)
	killall p0f
	;;
    *)
	echo "error"
	exit 1
	;;
esac
