mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-27 05:21:08 +01:00
0e20a72001
used to cleanup old files, and replace it by -delete which has been present in our find(1) for ages now.
16 lines
319 B
Bash
Executable File
16 lines
319 B
Bash
Executable File
#!/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
|