aboutsummaryrefslogblamecommitdiff
path: root/etc/periodic/weekly/120.clean-kvmdb
blob: abf00cd8f01603307f62174a477360c01d0a7a62 (plain) (tree)
1
2
3
4
5
6

           
                                                          

 
                        






                                                           
                         
  
#!/bin/sh -
#
# $Id: 120.clean-kvmdb,v 1.2 1998/01/01 09:04:47 bde Exp $
#

if [ -d /var/db ] ; then
    echo ""
    echo "Cleaning up kernel database files:"

    kernel=`sysctl -n kern.bootfile`
    kernel=kvm_`basename ${kernel}`.db

    find /var/db -name "kvm_*.db" -a ! -name ${kernel} -a \
	-atime +7 -delete
fi