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

(-)a/app-emulation/kqemu/kqemu-1.4.0_pre1.ebuild (-1 / +18 lines)
Lines 69-75 src_install() { Link Here
69
69
70
	# module params
70
	# module params
71
	dodir /etc/modprobe.d
71
	dodir /etc/modprobe.d
72
	echo "options kqemu major=0" > ${D}/etc/modprobe.d/kqemu
72
	echo "options kqemu major=0" > ${D}/etc/modprobe.d/kqemu.conf
73
}
74
75
pkg_preinst() {
76
	linux-mod_pkg_preinst
77
	local old1="${ROOT}/etc/modprobe.d/kqemu"
78
	local old2="${ROOT}/etc/modules.d/kqemu"
79
	local new="${ROOT}/etc/modprobe.d/kqemu.conf"
80
	if [[ ! -a "${new}" ]]; then
81
		if [[ -a "${old1}" ]]; then
82
			elog "Renaming /etc/modprobe.d/kqemu to /etc/modprobe.d/kqemu.conf"
83
			mv "${old1}" "${new}"
84
		elif [[ -a "${old2}" ]]; then
85
			elog "Moving old kqemu configuration in /etc/modules.d to new"
86
			elog "location in /etc/modprobe.d"
87
			mv "${old2}" "${new}"
88
		fi
89
	fi
73
}
90
}
74
91
75
pkg_postinst() {
92
pkg_postinst() {

Return to bug 275151