diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-04-24 20:43:10 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-04-24 20:43:10 +0100 |
commit | 5a06c8470858d7e2b640c6d2848b962000befd24 (patch) | |
tree | 2e3ec4667523aeb0d49fc42e019025d8b8f44950 | |
parent | 38b1b2efc70f59fa0aa50ef29cd25f4bcdce1aaa (diff) |
make things simpler
-rw-r--r-- | sys-kernel/dracut-config-redcore/dracut-config-redcore-1337-r3.ebuild | 19 |
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 -} |