summaryrefslogtreecommitdiff
path: root/sys-kernel
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-04-24 20:43:10 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-04-24 20:43:10 +0100
commit5a06c8470858d7e2b640c6d2848b962000befd24 (patch)
tree2e3ec4667523aeb0d49fc42e019025d8b8f44950 /sys-kernel
parent38b1b2efc70f59fa0aa50ef29cd25f4bcdce1aaa (diff)
make things simpler
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/dracut-config-redcore/dracut-config-redcore-1337-r3.ebuild19
1 files changed, 1 insertions, 18 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 a6186cad..b57f2ab0 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
@@ -20,23 +20,6 @@ S="${FILESDIR}"
src_install() {
dodir "etc/dracut.conf.d" || die
insinto "etc/dracut.conf.d" || die
+ 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
- mv ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf" ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf.bak"
- fi
-}
-
-pkg_postinst() {
- if [[ -f ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf.bak" ]]; then
- mv ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf.bak" ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf"
- sed -i "s/drm\ plymouth\ /drm\ /g" ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf"
- sed -i "s/dracut-systemd/dracut-systemd\ plymouth/g" ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf"
- fi
-
- if [[ ! -f ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf" ]]; then
- cp -avx ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf.example" ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf"
- fi
-}