#!/bin/sh -e

CONFIG=/etc/snort/snort.conf

test -f /usr/sbin/snort || exit 0

test -f $CONFIG && . $CONFIG

test "$DEBIAN_SNORT_STARTUP" = "dialup" || exit 0

start-stop-daemon --stop --quiet --oknodo --exec /usr/sbin/snort >/dev/null

exit 0
