summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-04-24 20:46:36 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-04-24 20:46:36 +0100
commit929964deb2d086ffddda7ee212b0da5e2b838b81 (patch)
tree61716f05aab7fa39399d075b6d44fb7106428035
parent5a06c8470858d7e2b640c6d2848b962000befd24 (diff)
final tweak
-rw-r--r--sys-kernel/dracut-config-redcore/dracut-config-redcore-1337-r3.ebuild6
1 files changed, 6 insertions, 0 deletions
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
+}