diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-09-30 04:54:51 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-09-30 04:54:51 +0000 |
commit | 024cbee6c4005d79e6fdb7b43aad09d54843b1e2 (patch) | |
tree | 027e3ddac5081b0a08e6f04f1c3416e229b1de2d | |
parent | 5dcbb050d6e46286e8705538758c4473dc7093d0 (diff) |
Make /var/tmp/vi.recover if it does not exist.
-rw-r--r-- | etc/rc | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.49 1997/09/26 18:43:45 millert Exp $ +# $OpenBSD: rc,v 1.50 1997/09/30 04:54:50 millert Exp $ # System startup script run by init on autoboot # or after single-user. @@ -242,6 +242,14 @@ sed '1,/^$/d' < /etc/motd >> $T cmp -s $T /etc/motd || cp $T /etc/motd rm -f $T +if [ ! -d /var/tmp/vi.recover ]; then + if [ -e /var/tmp/vi.recover ]; then + echo "Warning! /var/tmp/vi.recover is not a directory!" + else + mkdir /var/tmp/vi.recover + chmod 1777 /var/tmp/vi.recover + fi +fi virecovery=/var/tmp/vi.recover/recover.* if [ "$virecovery" != "/var/tmp/vi.recover/recover.*" ]; then echo preserving editor files |