1#!/bin/sh
2#
3# cleanup pass on all mounted hammer2 filesystems
4
5# If there is a global system configuration file, suck it in.
6#
7if [ -r /etc/defaults/periodic.conf ]
8then
9    . /etc/defaults/periodic.conf
10    source_periodic_confs
11fi
12
13case "$daily_clean_hammer2_enable" in
14    [Yy][Ee][Ss])
15	echo ""
16	echo "HAMMER maintenance:"
17	case "$daily_clean_hammer2_verbose" in
18	    [Yy][Ee][Ss])
19		verbose=-v;;
20	    *)
21		verbose=;;
22	esac
23
24	hammer2 $verbose cleanup $daily_clean_hammer2_pfslist && rc=0;;
25
26    *)  rc=0;;
27esac
28
29exit $rc
30