From 929964deb2d086ffddda7ee212b0da5e2b838b81 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 24 Apr 2020 20:46:36 +0100 Subject: final tweak --- .../dracut-config-redcore/dracut-config-redcore-1337-r3.ebuild | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sys-kernel') diff --git a/sys-kernel/dracut-config-redcore/dracut-config-redcore-1337-r3.ebuild b/sys-kernel/dracut-config-redcore/dracut-config-redcore-1337-r3.ebuild index b57f2ab0..03dcdd4d 100644 --- a/sys-kernel/dracut-config-redcore/dracut-config-redcore-1337-r3.ebuild +++ b/sys-kernel/dracut-config-redcore/dracut-config-redcore-1337-r3.ebuild @@ -23,3 +23,9 @@ src_install() { doins redcore-dracut.conf || die newins redcore-dracut.conf redcore-dracut.conf.example || die } + +pkg_preinst() { + if [[ -f ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf" ]]; then + rm -rf ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf" + fi +} -- cgit v1.2.3