var (91785) | var (100280) |
---|---|
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: --- 8 unchanged lines hidden (view full) --- 17# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 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 | 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: --- 8 unchanged lines hidden (view full) --- 17# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 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# $FreeBSD: head/etc/rc.d/var 91785 2002-03-07 07:17:15Z obrien $ | 25# SUCH DAMAGE. |
26# | 26# |
27# $FreeBSD: head/etc/rc.d/var 91785 2002-03-07 07:17:15Z obrien $ | 27# $FreeBSD: head/etc/rc.d/var 100280 2002-07-18 05:00:17Z gordon $ |
28# 29 30# PROVIDE: diskless 31# REQUIRE: initdiskless mountcritlocal 32# BEFORE: addswap random 33# KEYWORD: FreeBSD 34 35dlv=`/sbin/sysctl -n vfs.nfs.diskless_valid 2> /dev/null` --- 19 unchanged lines hidden (view full) --- 55 /sbin/mount /dev/md$3c $2 56} 57 58# If there is a global system configuration file, suck it in. 59# 60if [ -r /etc/rc.subr ]; then 61 . /etc/rc.subr 62 load_rc_config $name | 28# 29 30# PROVIDE: diskless 31# REQUIRE: initdiskless mountcritlocal 32# BEFORE: addswap random 33# KEYWORD: FreeBSD 34 35dlv=`/sbin/sysctl -n vfs.nfs.diskless_valid 2> /dev/null` --- 19 unchanged lines hidden (view full) --- 55 /sbin/mount /dev/md$3c $2 56} 57 58# If there is a global system configuration file, suck it in. 59# 60if [ -r /etc/rc.subr ]; then 61 . /etc/rc.subr 62 load_rc_config $name |
63elif [ -r /etc/defaults/rc.conf ]; then 64 . /etc/defaults/rc.conf 65 source_rc_confs 66elif [ -r /etc/rc.conf ]; then 67 . /etc/rc.conf 68fi 69 |
|
63echo "+++ mount_md of /var" 64mount_md ${varsize:=32m} /var 1 65 66echo "+++ populate /var using /etc/mtree/BSD.var.dist" 67/usr/sbin/mtree -deU -f /etc/mtree/BSD.var.dist -p /var 68case ${sendmail_enable} in 69echo "+++ create log files based on the contents of /etc/newsyslog.conf" 70LOGFILES=`/usr/bin/awk '$1 != "#" { printf "%s ", $1 } ' /etc/newsyslog.conf` --- 38 unchanged lines hidden --- | 70echo "+++ mount_md of /var" 71mount_md ${varsize:=32m} /var 1 72 73echo "+++ populate /var using /etc/mtree/BSD.var.dist" 74/usr/sbin/mtree -deU -f /etc/mtree/BSD.var.dist -p /var 75case ${sendmail_enable} in 76echo "+++ create log files based on the contents of /etc/newsyslog.conf" 77LOGFILES=`/usr/bin/awk '$1 != "#" { printf "%s ", $1 } ' /etc/newsyslog.conf` --- 38 unchanged lines hidden --- |