|
@ -1,4 +1,4 @@ |
|
|
# $OpenBSD: rc,v 1.117 1999/10/03 04:22:42 deraadt Exp $ |
|
|
|
|
|
|
|
|
# $OpenBSD: rc,v 1.118 1999/10/06 04:41:46 millert Exp $ |
|
|
|
|
|
|
|
|
# System startup script run by init on autoboot |
|
|
# System startup script run by init on autoboot |
|
|
# or after single-user. |
|
|
# or after single-user. |
|
@ -330,15 +330,15 @@ fi |
|
|
|
|
|
|
|
|
# vi file recovery |
|
|
# vi file recovery |
|
|
vidir=/var/tmp/vi.recover |
|
|
vidir=/var/tmp/vi.recover |
|
|
if [ -L $vidir ]; then |
|
|
|
|
|
|
|
|
if [ ! -e $vidir ]; then |
|
|
|
|
|
mkdir $vidir |
|
|
|
|
|
chmod 1777 $vidir |
|
|
|
|
|
elif [ -L $vidir ]; then |
|
|
echo "Warning! $vidir is a symbolic link! (ignoring)" |
|
|
echo "Warning! $vidir is a symbolic link! (ignoring)" |
|
|
elif [ ! -O $vidir ]; then |
|
|
elif [ ! -O $vidir ]; then |
|
|
echo "Warning! $vidir is not owned by root! (ignoring)" |
|
|
echo "Warning! $vidir is not owned by root! (ignoring)" |
|
|
elif [ ! -d $vidir -a -e $vidir ]; then |
|
|
elif [ ! -d $vidir -a -e $vidir ]; then |
|
|
echo "Warning! $vidir is not a directory! (ignoring)" |
|
|
echo "Warning! $vidir is not a directory! (ignoring)" |
|
|
elif [ ! -d $vidir ]; then |
|
|
|
|
|
mkdir $vidir |
|
|
|
|
|
chmod 1777 $vidir |
|
|
|
|
|
else |
|
|
else |
|
|
vibackup=$vidir/vi.* |
|
|
vibackup=$vidir/vi.* |
|
|
for i in $vibackup; do |
|
|
for i in $vibackup; do |
|
|