freebsd-ports/ports-mgmt/fbsdmon/files/600.fbsdmon.in
Jason Helfman 42d8138e1e - Update to 0.91 (bug fix release, fix crashes on some systems)
PR:	ports/166588
Submitted by:	maintainer, magik@roorback.net
Feature safe:	yes
2012-04-04 05:12:03 +00:00

25 lines
399 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# If there is a global system configuration file, suck it in.
#
if [ -r /etc/defaults/periodic.conf ]
then
. /etc/defaults/periodic.conf
source_periodic_confs
fi
case "$weekly_fbsdmon_enable" in
[Yy][Ee][Ss])
echo ""
echo "Sending statistic to fbsdmon.org"
%%PREFIX%%/sbin/fbsdmon -D -s
rc=$?;;
*) rc=0;;
esac
exit $rc