Start vi.recovery processing after ldconfig.

Closes misc/1346 which has bitten me more times than I care to remember.
This commit is contained in:
Paul Traina 1996-06-24 19:00:28 +00:00
parent 4012436276
commit 22dde4b374

20
etc/rc
View File

@ -1,5 +1,5 @@
#!/bin/sh
# $Id: rc,v 1.91 1996/06/15 17:04:48 jkh Exp $
# $Id: rc,v 1.92 1996/06/22 13:05:20 joerg Exp $
# From: @(#)rc 5.27 (Berkeley) 6/5/91
# System startup script run by init on autoboot
@ -277,15 +277,6 @@ then
"password file may be incorrect -- /etc/ptmp exists"
fi
# Recover vi editor files.
virecovery=`echo /var/tmp/vi.recover/recover.*`
if [ "$virecovery" != '/var/tmp/vi.recover/recover.*' ]; then
echo 'Recovering vi editor sessions'
for i in $virecovery; do
sendmail -t < $i
done
fi
if [ "X${accounting}" = X"YES" -a -d /var/account ]; then
echo 'turning on accounting'
if [ ! -e /var/account/acct ]; then
@ -328,6 +319,15 @@ if [ -f /etc/rc.${arch} ]; then
. /etc/rc.${arch}
fi
# Recover vi editor files.
virecovery=`echo /var/tmp/vi.recover/recover.*`
if [ "$virecovery" != '/var/tmp/vi.recover/recover.*' ]; then
echo 'Recovering vi editor sessions'
for i in $virecovery; do
sendmail -t < $i
done
fi
# for each valid dir in $local_startup, search for init scripts matching *.sh
if [ "X${local_startup}" != X"NO" ]; then
echo -n 'Local package startup:'