aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>1999-08-30 03:34:46 +0000
committerWarner Losh <imp@FreeBSD.org>1999-08-30 03:34:46 +0000
commit8b2bfd893af51330d640af25087cf059b522866b (patch)
treef07f00f95018710819ad260748e29a3031e7b140 /etc
parentde5104ae7ca42a1c08c695d03df9d90abbe8fbe9 (diff)
downloadsrc-8b2bfd893af51330d640af25087cf059b522866b.tar.gz
src-8b2bfd893af51330d640af25087cf059b522866b.zip
Remove all non-file like things in /var/tmp/vi.recover on reboot.
Notes
Notes: svn path=/head/; revision=50612
Diffstat (limited to 'etc')
-rw-r--r--etc/rc1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/rc b/etc/rc
index 9a4877a85019..620f82ce9d70 100644
--- a/etc/rc
+++ b/etc/rc
@@ -343,6 +343,7 @@ if [ -f /etc/rc.${arch} ]; then
fi
# Recover vi editor files.
+find /var/tmp/vi.recover ! -type f -a ! -type d -delete
vibackup=`echo /var/tmp/vi.recover/vi.*`
if [ "${vibackup}" != '/var/tmp/vi.recover/vi.*' ]; then
echo 'Recovering vi editor sessions'