mdconfig2 (180563) | mdconfig2 (208060) |
---|---|
1#!/bin/sh 2# 3# Copyright (c) 2006 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: --- 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) 2006 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: --- 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/mdconfig2 180563 2008-07-16 19:22:48Z dougb $ | 27# $FreeBSD: head/etc/rc.d/mdconfig2 208060 2010-05-14 04:53:57Z dougb $ |
28# 29 30# PROVIDE: mdconfig2 31# REQUIRE: mountcritremote 32# BEFORE: SERVERS 33 34. /etc/rc.subr 35 --- 8 unchanged lines hidden (view full) --- 44 local _mp _ret 45 46 _mp=$1 47 _ret=`mount | while read _line; do 48 case ${_line} in 49 *" ${_mp} "*read-only*) 50 echo "yes" 51 ;; | 28# 29 30# PROVIDE: mdconfig2 31# REQUIRE: mountcritremote 32# BEFORE: SERVERS 33 34. /etc/rc.subr 35 --- 8 unchanged lines hidden (view full) --- 44 local _mp _ret 45 46 _mp=$1 47 _ret=`mount | while read _line; do 48 case ${_line} in 49 *" ${_mp} "*read-only*) 50 echo "yes" 51 ;; |
52 | 52 |
53 *) 54 ;; 55 esac; 56 done` 57 58 if [ -n "${_ret}" ]; then 59 return 0 60 else --- 157 unchanged lines hidden (view full) --- 218 if [ -z "${_mdconfig2_config}" ]; then 219 break 220 else 221 _mdconfig2_list="${_mdconfig2_list}${_mdconfig2_list:+ }md${_mdconfig2_unit}" 222 _mdconfig2_unit=$((${_mdconfig2_unit} + 1)) 223 fi 224 done 225fi | 53 *) 54 ;; 55 esac; 56 done` 57 58 if [ -n "${_ret}" ]; then 59 return 0 60 else --- 157 unchanged lines hidden (view full) --- 218 if [ -z "${_mdconfig2_config}" ]; then 219 break 220 else 221 _mdconfig2_list="${_mdconfig2_list}${_mdconfig2_list:+ }md${_mdconfig2_unit}" 222 _mdconfig2_unit=$((${_mdconfig2_unit} + 1)) 223 fi 224 done 225fi |
226 | 226 |
227run_rc_command "${_mdconfig2_cmd}" | 227run_rc_command "${_mdconfig2_cmd}" |