Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jan 2000 11:35:27 +0100 (CET)
From:      Trond Endrestol <trond@ramstind.gtf.ol.no>
To:        FreeBSD stable <freebsd-stable@freebsd.org>, FreeBSD current <freebsd-current@freebsd.org>
Subject:   Making sure /var/tmp/vi.recover exists during reboot
Message-ID:  <Pine.BSF.4.10.10001111128440.75103-100000@ramstind.gtf.ol.no>

next in thread | raw e-mail | index | archive | help
Hi,

This is something you might want to put in /etc/rc in both -stable
and -current.

Scenario:

/tmp is MFS,
/var/tmp, /usr/tmp and /usr/local/tmp are symlinks to /tmp,
and hence /var/tmp/vi.recover does not exist at reboot and causes
«cosmetic interference» on the console during reboot.

Solution:

Add these lines after the «# Recover vi editor files.» line (about
line #345):

if [ ! -d /var/tmp/vi.recover ]; then
  mkdir /var/tmp/vi.recover;
  chmod 1777 /var/tmp/vi.recover;
  chown root:wheel /var/tmp/vi.recover;
fi

----------------------------------------------------------------------
Trond Endrestøl                          |             trond@gtf.ol.no
Merkantilvegen 59HB7,                    |    trond@ramstind.gtf.ol.no
N-2815 GJØVIK, NORWAY                    |+47 61139424 || +47 63874242
Patron of The Art of Computer Programming|     FreeBSD 3.3 & Pine 4.10



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.10001111128440.75103-100000>