rc (88199) | rc (88531) |
---|---|
1#!/bin/sh 2# 3# Copyright (c) 2000 The FreeBSD Project 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: --- 11 unchanged lines hidden (view full) --- 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# @(#)rc 5.27 (Berkeley) 6/5/91 | 1#!/bin/sh 2# 3# Copyright (c) 2000 The FreeBSD Project 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: --- 11 unchanged lines hidden (view full) --- 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# @(#)rc 5.27 (Berkeley) 6/5/91 |
28# $FreeBSD: head/etc/rc 88199 2001-12-19 16:10:25Z brian $ | 28# $FreeBSD: head/etc/rc 88531 2001-12-27 13:41:27Z sheldonh $ |
29# 30 31# System startup script run by init on autoboot 32# or after single-user. 33# Output and error are redirected to console by init, 34# and the console is the controlling terminal. 35 36# Note that almost all of the user-configurable behavior is no longer in --- 226 unchanged lines hidden (view full) --- 263 exit 1 264 fi 265 ;; 266esac 267 268umount -a >/dev/null 2>&1 269 270# Mount everything except nfs filesystems. | 29# 30 31# System startup script run by init on autoboot 32# or after single-user. 33# Output and error are redirected to console by init, 34# and the console is the controlling terminal. 35 36# Note that almost all of the user-configurable behavior is no longer in --- 226 unchanged lines hidden (view full) --- 263 exit 1 264 fi 265 ;; 266esac 267 268umount -a >/dev/null 2>&1 269 270# Mount everything except nfs filesystems. |
271mount -a -t nonfs | 271if [ -z "${networkfs_types}" ]; then 272 networkfs_types='nfs:NFS smbfs:SMB portalfs:PORTAL' 273fi 274mount_excludes='no' 275for i in ${networkfs_types}; do 276 fstype=${i%:*} 277 mount_excludes="${mount_excludes}${fstype}," 278done 279mount_excludes=${mount_excludes%,} 280mount -a -t ${mount_excludes} |
272 273case $? in 2740) 275 ;; 276*) 277 echo 'Mounting /etc/fstab filesystems failed, startup aborted' 278 exit 1 279 ;; --- 122 unchanged lines hidden (view full) --- 402 if [ -r /etc/rc.network6 ]; then 403 . /etc/rc.network6 # We only need to do this once also. 404 network6_pass1 405 fi 406 ;; 407esac 408 409# Mount NFS filesystems if present in /etc/fstab | 281 282case $? in 2830) 284 ;; 285*) 286 echo 'Mounting /etc/fstab filesystems failed, startup aborted' 287 exit 1 288 ;; --- 122 unchanged lines hidden (view full) --- 411 if [ -r /etc/rc.network6 ]; then 412 . /etc/rc.network6 # We only need to do this once also. 413 network6_pass1 414 fi 415 ;; 416esac 417 418# Mount NFS filesystems if present in /etc/fstab |
419# 420# XXX When the vfsload() issues with nfsclient support and related sysctls 421# have been resolved, this block can be removed, and the condition that 422# skips nfs in the following block (for "other network filesystems") can 423# be removed. |
|
410case "`mount -d -a -t nfs 2> /dev/null`" in 411*mount_nfs*) 412 # Handle absent nfs client support 413 nfsclient_in_kernel=0 414 if sysctl vfs.nfs >/dev/null 2>&1; then 415 nfsclient_in_kernel=1 416 else 417 kldload nfsclient && nfsclient_in_kernel=1 --- 7 unchanged lines hidden (view full) --- 425 ;; 426 *) 427 echo 'Warning: nfs mount requested, but no nfs client in kernel' 428 ;; 429 esac 430 ;; 431esac 432 | 424case "`mount -d -a -t nfs 2> /dev/null`" in 425*mount_nfs*) 426 # Handle absent nfs client support 427 nfsclient_in_kernel=0 428 if sysctl vfs.nfs >/dev/null 2>&1; then 429 nfsclient_in_kernel=1 430 else 431 kldload nfsclient && nfsclient_in_kernel=1 --- 7 unchanged lines hidden (view full) --- 439 ;; 440 *) 441 echo 'Warning: nfs mount requested, but no nfs client in kernel' 442 ;; 443 esac 444 ;; 445esac 446 |
447# Mount other network filesystems if present in /etc/fstab 448for i in ${networkfs_types}; do 449 fstype=${i%:*} 450 fsdecr=${i#*:} 451 452 if [ "${fstype}" = "nfs" ]; then 453 continue 454 fi 455 case "`mount -d -a -t ${fstype}`" in 456 *mount_${fstype}*) 457 echo -n "Mounting ${fsdecr} file systems:" 458 mount -a -t ${fstype} 459 echo '.' 460 ;; 461 esac 462done 463 |
|
433# Whack the pty perms back into shape. 434# 435if ls /dev/tty[pqrsPQRS]* > /dev/null 2>&1; then 436 chflags 0 /dev/tty[pqrsPQRS]* 437 chmod 666 /dev/tty[pqrsPQRS]* 438 chown root:wheel /dev/tty[pqrsPQRS]* 439fi 440 --- 434 unchanged lines hidden --- | 464# Whack the pty perms back into shape. 465# 466if ls /dev/tty[pqrsPQRS]* > /dev/null 2>&1; then 467 chflags 0 /dev/tty[pqrsPQRS]* 468 chmod 666 /dev/tty[pqrsPQRS]* 469 chown root:wheel /dev/tty[pqrsPQRS]* 470fi 471 --- 434 unchanged lines hidden --- |