Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 178699
Collapse All | Expand All

(-)1.0.3-dm-crypt-stop.sh (-1 / +3 lines)
Lines 6-20 Link Here
6
then
6
then
7
	einfo "Removing dm-crypt mappings"
7
	einfo "Removing dm-crypt mappings"
8
8
9
	/bin/egrep "^(target|swap)" /etc/conf.d/cryptfs | \
9
	/bin/egrep "^(target|swap|source)" /etc/conf.d/cryptfs | \
10
	while read targetline
10
	while read targetline
11
	do
11
	do
12
		target=
12
		target=
13
		swap=
13
		swap=
14
		source=
14
15
15
		eval ${targetline}
16
		eval ${targetline}
16
17
17
		[ -n "${swap}" ] && target=${swap}
18
		[ -n "${swap}" ] && target=${swap}
19
		[ -n "${source}" ] && target=${source}
18
		[ -z "${target}" ] && ewarn "Invalid line in /etc/conf.d/cryptfs: ${targetline}"
20
		[ -z "${target}" ] && ewarn "Invalid line in /etc/conf.d/cryptfs: ${targetline}"
19
21
20
		ebegin "Removing dm-crypt mapping for: ${target}"
22
		ebegin "Removing dm-crypt mapping for: ${target}"

Return to bug 178699