From a3105a49ef1908bc17180973b007f895fb7e7603 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 28 Nov 2020 22:53:55 +0000 Subject: move : sys-boot/grub-config-redcore => sys-boot/grubcfg --- sys-boot/grubcfg/grubcfg-1337.ebuild | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 sys-boot/grubcfg/grubcfg-1337.ebuild (limited to 'sys-boot/grubcfg/grubcfg-1337.ebuild') diff --git a/sys-boot/grubcfg/grubcfg-1337.ebuild b/sys-boot/grubcfg/grubcfg-1337.ebuild new file mode 100644 index 00000000..490e1933 --- /dev/null +++ b/sys-boot/grubcfg/grubcfg-1337.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +DESCRIPTION="Redcore Linux GRUB configuration files" +HOMEPAGE="" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +S="${FILESDIR}" + +src_install() { + dodir "etc/default" || die + insinto "etc/default" || die + newins grub grub.example || die +} + +pkg_preinst() { + if [[ -f ""${ROOT}"etc/default/grub" ]]; then + mv ""${ROOT}"etc/default/grub" ""${ROOT}"etc/default/grub.bak" + fi +} + +pkg_postinst() { + if [[ -f ""${ROOT}"etc/default/grub.bak" ]]; then + mv ""${ROOT}"etc/default/grub.bak" ""${ROOT}"etc/default/grub" + fi +} -- cgit v1.2.3