From bb3ce629cacca1c66b09eb05f6ea8457cf57e63d Mon Sep 17 00:00:00 2001 From: danger Date: Sun, 17 May 2009 08:25:02 +0000 Subject: - 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 --- etc/rc.d/tmp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'etc') diff --git a/etc/rc.d/tmp b/etc/rc.d/tmp index 9750b6e..abf53ac 100755 --- a/etc/rc.d/tmp +++ b/etc/rc.d/tmp @@ -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]) ;; -- cgit v1.1