16 lines
272 B
Bash
Executable File
16 lines
272 B
Bash
Executable File
#!/bin/sh -
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
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
|