mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Remove all non-file like things in /var/tmp/vi.recover on reboot.
This commit is contained in:
parent
de5104ae7c
commit
8b2bfd893a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=50612
1 changed files with 1 additions and 0 deletions
1
etc/rc
1
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'
|
||||
|
|
Loading…
Reference in a new issue