aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/rancid3/files/200.rancid.in
blob: b41a2931463ed57d0032cc75d0881be133182d41 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

# 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

# hourly_rancid_enable		- Enable hourly rancid run (values: YES | NO)

case "${hourly_rancid_enable-"NO"}" in
	[Yy][Ee][Ss])
		/usr/bin/su -f rancid %%LOCALBASE%%/libexec/rancid/rancid-run
		;;

	*)
		exit 0
		;;
esac