#!/bin/sh -fu

. install2-init-functions

for i in clamd openvpn evms rawdevices dnsmasq; do
	chroot $destdir chkconfig $i off &> /dev/null ||:
done

# FIXME: to be done in the package
subst 's,/usr/bin/freshclam,[ -f /var/run/clamav/clamd.pid ] \&\& /usr/bin/freshclam,' $destdir/etc/cron.d/freshclam &> /dev/null||:

