Date: Sun, 17 May 2009 08:25:02 +0000 (UTC) From: Daniel Gerzo <danger@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r192246 - head/etc/rc.d Message-ID: <200905170825.n4H8P2Qs018675@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: danger (doc committer) Date: Sun May 17 08:25:02 2009 New Revision: 192246 URL: http://svn.freebsd.org/changeset/base/192246 Log: - do not create and mount new file systems on top of the old ones on every invocation of this script once we already have one (in case tmpmfs="YES"). Reviewed by: dougb Modified: head/etc/rc.d/tmp Modified: head/etc/rc.d/tmp ============================================================================== --- head/etc/rc.d/tmp Sun May 17 06:45:30 2009 (r192245) +++ head/etc/rc.d/tmp Sun May 17 08:25:02 2009 (r192246) @@ -43,8 +43,10 @@ load_rc_config $name # case "${tmpmfs}" in [Yy][Ee][Ss]) - mount_md ${tmpsize} /tmp "${tmpmfs_flags}" - chmod 01777 /tmp + if ! /bin/df /tmp | grep -q "^/dev/md[0-9]"; then + mount_md ${tmpsize} /tmp "${tmpmfs_flags}" + chmod 01777 /tmp + fi ;; [Nn][Oo]) ;;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905170825.n4H8P2Qs018675>