diff options
author | rgrimes <rgrimes@FreeBSD.org> | 1994-02-21 02:47:47 +0000 |
---|---|---|
committer | rgrimes <rgrimes@FreeBSD.org> | 1994-02-21 02:47:47 +0000 |
commit | f6bf5bccb2088cf285e54d9f313bf363eb362c00 (patch) | |
tree | e635bb52df8f63c2edbf7db7dfd44bf4a700598e /etc/rc | |
parent | 31e8953bf18d7f2febe1c75d8d1103e277461bed (diff) | |
download | FreeBSD-src-f6bf5bccb2088cf285e54d9f313bf363eb362c00.zip FreeBSD-src-f6bf5bccb2088cf285e54d9f313bf363eb362c00.tar.gz |
Put back in elvis recovery stuff, we still ship elvis with 1.1 as a fall
back editor!
Add nvi recovery precedure from man page.
Fix ntpdate echo lines so that it looks pretty (ntpdate spits out 1 line
of output that makes the system boot up look real ugly if you do it
echo -n, so I chaged it to echo, and then added a
echo -n 'starting more network daemons:' so any addition daemon starts
look normal.
Diffstat (limited to 'etc/rc')
-rw-r--r-- | etc/rc | 20 |
1 files changed, 18 insertions, 2 deletions
@@ -1,5 +1,5 @@ #!/bin/sh -# $Id: rc,v 1.15 1994/01/22 20:44:13 guido Exp $ +# $Id: rc,v 1.16 1994/02/02 08:02:37 chmr Exp $ # From: @(#)rc 5.27 (Berkeley) 6/5/91 # System startup script run by init on autoboot @@ -127,6 +127,21 @@ then 'password file may be incorrect -- /etc/ptmp exists' fi +# Recover elvis editor files. +echo preserving editor files +(cd /var/tmp && /usr/libexec/elvispreserve "-the system rebooted" elvis* && + rm -f elvis[0-9a-f][0-9a-f][0-9a-f][0-9a-f]* \ + elvis_[0-9a-f][0-9a-f][0-9a-f][0-9a-f]*) + +# Recover vi editor files. +virecovery=/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 + echo clearing /tmp # prune quickly with one rm, then use find to clean up /tmp/[lq]* @@ -164,7 +179,8 @@ fi # If $ntpdate != NO, run ntpdate $ntpdate to set the date correctly. # If $xntpdflags != NO, start xntpd. if [ X"${ntpdate}" != X"NO" ]; then - echo -n ' ntpdate'; ntpdate $ntpdate + echo ' ntpdate'; ntpdate $ntpdate + echo -n 'starting more network daemons:' fi if [ X"${xntpdflags}" != X"NO" ]; then |