mountcritlocal (180295) | mountcritlocal (197947) |
---|---|
1#!/bin/sh 2# | 1#!/bin/sh 2# |
3# $FreeBSD: head/etc/rc.d/mountcritlocal 180295 2008-07-05 15:19:58Z mtm $ | 3# $FreeBSD: head/etc/rc.d/mountcritlocal 197947 2009-10-10 22:17:03Z dougb $ |
4# 5 6# PROVIDE: mountcritlocal 7# REQUIRE: root 8# KEYWORD: nojail 9 10. /etc/rc.subr 11 --- 11 unchanged lines hidden (view full) --- 23 [Nn][Oo]) 24 ;; 25 *) 26 netfs_types="${netfs_types} ${extra_netfs_types}" 27 ;; 28 esac 29 30 # Mount everything except nfs filesystems. | 4# 5 6# PROVIDE: mountcritlocal 7# REQUIRE: root 8# KEYWORD: nojail 9 10. /etc/rc.subr 11 --- 11 unchanged lines hidden (view full) --- 23 [Nn][Oo]) 24 ;; 25 *) 26 netfs_types="${netfs_types} ${extra_netfs_types}" 27 ;; 28 esac 29 30 # Mount everything except nfs filesystems. |
31 [ -z "${rc_quiet}" ] && echo -n 'Mounting local file systems:' | 31 check_startmsgs && echo -n 'Mounting local file systems:' |
32 mount_excludes='no' 33 for i in ${netfs_types}; do 34 fstype=${i%:*} 35 mount_excludes="${mount_excludes}${fstype}," 36 done 37 mount_excludes=${mount_excludes%,} 38 mount -a -t ${mount_excludes} 39 err=$? | 32 mount_excludes='no' 33 for i in ${netfs_types}; do 34 fstype=${i%:*} 35 mount_excludes="${mount_excludes}${fstype}," 36 done 37 mount_excludes=${mount_excludes%,} 38 mount -a -t ${mount_excludes} 39 err=$? |
40 [ -z "${rc_quiet}" ] && echo '.' | 40 check_startmsgs && echo '.' |
41 42 case ${err} in 43 0) 44 ;; 45 *) 46 echo 'Mounting /etc/fstab filesystems failed,' \ 47 ' startup aborted' 48 stop_boot true 49 ;; 50 esac 51} 52 53load_rc_config $name 54run_rc_command "$1" | 41 42 case ${err} in 43 0) 44 ;; 45 *) 46 echo 'Mounting /etc/fstab filesystems failed,' \ 47 ' startup aborted' 48 stop_boot true 49 ;; 50 esac 51} 52 53load_rc_config $name 54run_rc_command "$1" |