blob: 857dd99df04c867a18ae9e1299f85c14508da2a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/bin/sh
#
# $FreeBSD$
#
# f-prot update script
# 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
: ${fpupdate_enable="YES"}
case "$fpupdate_enable" in
[Yy][Ee][Ss])
echo -n "Updating f-prot definitions: "
%%PREFIX%%/bin/fpupdate >/dev/null
if [ $? = 0 ]; then
echo "done."
rc=0
else
echo "failed."
rc=3
fi
;;
*) rc=0;;
esac
exit $rc
|