diff --git a/etc/rc.d/virecover b/etc/rc.d/virecover index 4c9a272a1b57..8d61bcdb3d3d 100755 --- a/etc/rc.d/virecover +++ b/etc/rc.d/virecover @@ -27,6 +27,7 @@ esac virecover_start() { + [ -d /var/tmp/vi.recover ] || return 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