Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 371141 | Differences between
and this patch

Collapse All | Expand All

(-)a/init.d/localmount.in (-4 / +4 lines)
Lines 37-51 stop() Link Here
37
	local x= no_umounts_r="/|/dev|/dev/.*|${RC_SVCDIR}"
37
	local x= no_umounts_r="/|/dev|/dev/.*|${RC_SVCDIR}"
38
	no_umounts_r="${no_umounts_r}|/bin|/sbin|/lib|/libexec"
38
	no_umounts_r="${no_umounts_r}|/bin|/sbin|/lib|/libexec"
39
	# RC_NO_UMOUNTS is an env var that can be set by plugins
39
	# RC_NO_UMOUNTS is an env var that can be set by plugins
40
	OIFS=$IFS SIFS=${IFS-y}
40
	local OIFS=$IFS SIFS=${IFS-n}
41
	IFS=$IFS:
41
	IFS=$IFS:
42
	for x in $no_umounts $RC_NO_UMOUNTS; do
42
	for x in $no_umounts $RC_NO_UMOUNTS; do
43
		no_umounts_r="$no_umounts_r|$x"
43
		no_umounts_r="$no_umounts_r|$x"
44
	done
44
	done
45
	if [ "$SIFS" = y ]; then
45
	if [ "$SIFS" = n ]; then
46
		IFS=$OIFS
47
	else
48
		unset IFS
46
		unset IFS
47
	else
48
		IFS=$OIFS
49
	fi
49
	fi
50
50
51
	if [ "$RC_UNAME" = Linux ]; then
51
	if [ "$RC_UNAME" = Linux ]; then
(-)a/init.d/mount-ro.in (-5 / +4 lines)
Lines 22-36 start() Link Here
22
	local m="/dev|/dev/.*|/proc|/proc.*|/sys|/sys/.*|${RC_SVCDIR}" x= fs=
22
	local m="/dev|/dev/.*|/proc|/proc.*|/sys|/sys/.*|${RC_SVCDIR}" x= fs=
23
	m="$m|/bin|/sbin|/lib|/libexec"
23
	m="$m|/bin|/sbin|/lib|/libexec"
24
	# RC_NO_UMOUNTS is an env var that can be set by plugins
24
	# RC_NO_UMOUNTS is an env var that can be set by plugins
25
	local OIFS=$IFS SIFS=${IFS-y} IFS=$IFS
25
	local OIFS=$IFS SIFS=${IFS-n}
26
	IFS=$IFS:
26
	IFS=$IFS:
27
	for x in $no_umounts $RC_NO_UMOUNTS; do
27
	for x in $no_umounts $RC_NO_UMOUNTS; do
28
		m="$m|$x"
28
		m="$m|$x"
29
	done
29
	done
30
	if [ "$SIFS" = y ]; then
30
	if [ "$SIFS" = n ]; then
31
		IFS=$OIFS
32
	else
33
		unset IFS
31
		unset IFS
32
	else
33
		IFS=$OIFS
34
	fi
34
	fi
35
	m="^($m)$"
35
	m="^($m)$"
36
	fs=
36
	fs=
37
- 

Return to bug 371141