tmp (221007) | tmp (238416) |
---|---|
1#!/bin/sh 2# 3# Copyright (c) 1999 Matt Dillon 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 10 unchanged lines hidden (view full) --- 19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25# SUCH DAMAGE. 26# | 1#!/bin/sh 2# 3# Copyright (c) 1999 Matt Dillon 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 10 unchanged lines hidden (view full) --- 19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25# SUCH DAMAGE. 26# |
27# $FreeBSD: head/etc/rc.d/tmp 221007 2011-04-25 06:03:22Z dougb $ | 27# $FreeBSD: head/etc/rc.d/tmp 238416 2012-07-13 06:46:09Z kevlo $ |
28# 29 30# PROVIDE: tmp 31# REQUIRE: mountcritremote 32 33. /etc/rc.subr 34 35name="tmp" 36stop_cmd=':' 37 38load_rc_config $name 39 | 28# 29 30# PROVIDE: tmp 31# REQUIRE: mountcritremote 32 33. /etc/rc.subr 34 35name="tmp" 36stop_cmd=':' 37 38load_rc_config $name 39 |
40mount_tmpmfs () | 40mount_tmpmfs() |
41{ 42 if ! /bin/df /tmp | grep -q "^/dev/md[0-9]"; then 43 mount_md ${tmpsize} /tmp "${tmpmfs_flags}" 44 chmod 01777 /tmp 45 fi 46} 47 48# If we do not have a writable /tmp, create a memory --- 23 unchanged lines hidden --- | 41{ 42 if ! /bin/df /tmp | grep -q "^/dev/md[0-9]"; then 43 mount_md ${tmpsize} /tmp "${tmpmfs_flags}" 44 chmod 01777 /tmp 45 fi 46} 47 48# If we do not have a writable /tmp, create a memory --- 23 unchanged lines hidden --- |