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

Collapse All | Expand All

(-)module-init-tools-3.11.1.ebuild (+17 lines)
Lines 55-58 Link Here
55
	if grep -qs modules-update "${ROOT}"/etc/init.d/modules ; then
55
	if grep -qs modules-update "${ROOT}"/etc/init.d/modules ; then
56
		sed -i 's:modules-update:update-modules:' "${ROOT}"/etc/init.d/modules
56
		sed -i 's:modules-update:update-modules:' "${ROOT}"/etc/init.d/modules
57
	fi
57
	fi
58
59
	local i f cfg
60
	pushd "${ROOT}/etc/modprobe.d/" >/dev/null
61
	for f in *; do
62
		[[ -z ${f/*.conf} ]] && continue # skip files _not_ ending on .conf
63
		[[ ! -f ${f}.conf ]] && continue # skip if ${f}.conf doesn't exit
64
		i=0
65
		cfg=$(printf "._cfg%04d_${f}.conf" ${i})
66
		while [[ -e ${cfg} ]];do
67
			((i++))
68
			cfg=$(printf "._cfg%04d_${f}.conf" ${i})
69
		done
70
		einfo "Updating ${f} at ${ROOT}/etc/modprobe.d/"
71
		mv "${f}.conf" "${cfg}"
72
		mv "${f}" "${f}.conf"
73
	done
74
	popd >/dev/null
58
}
75
}

Return to bug 274942