From 5a06c8470858d7e2b640c6d2848b962000befd24 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 24 Apr 2020 20:43:10 +0100 Subject: make things simpler --- .../dracut-config-redcore-1337-r3.ebuild | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'sys-kernel/dracut-config-redcore') 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 -} -- cgit v1.2.3