Date: Mon, 18 Dec 2006 08:42:21 +0100 (CET) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no> To: Doug Barton <dougb@FreeBSD.org> Cc: FreeBSD stable <freebsd-stable@FreeBSD.org> Subject: Re: tmpmfs="YES" and going from single user to multi user mode Message-ID: <20061218084117.V88614@ramstind.fig.ol.no> In-Reply-To: <4585B13F.9060109@FreeBSD.org> References: <20061217100614.R47398@ramstind.fig.ol.no> <4585B13F.9060109@FreeBSD.org>
index | next in thread | previous in thread | raw e-mail
On Sun, 17 Dec 2006 13:06-0800, Doug Barton wrote:
> We look forward to your patches to implement that suggestion. You
> might want to ask on the freebsd-rc@ list if you need help.
How about this patch?
*** /etc/rc.d/tmp Sun May 7 06:00:26 2006
--- tmp Mon Dec 18 08:40:40 2006
***************
*** 42,49 ****
#
case "${tmpmfs}" in
[Yy][Ee][Ss])
! mount_md ${tmpsize} /tmp "${tmpmfs_flags}"
! chmod 01777 /tmp
;;
[Nn][Oo])
;;
--- 42,54 ----
#
case "${tmpmfs}" in
[Yy][Ee][Ss])
! if [ -n "`mount | grep '/tmp' | grep '^/dev/md'`" ]; then
! echo "*** /tmp is already mounted as a MFS."
! echo "*** No need to mount yet another MFS."
! else
! mount_md ${tmpsize} /tmp "${tmpmfs_flags}"
! chmod 01777 /tmp
! fi
;;
[Nn][Oo])
;;
--
----------------------------------------------------------------------
Trond Endrestøl | trond@fagskolen.gjovik.no
Patron of The Art of Computer Programming| FreeBSD 6.1-S & Pine 4.64
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061218084117.V88614>
