diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-10-13 11:44:10 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-10-13 11:44:10 +0100 |
commit | 1b7bfe5c40035db77b8315dae7992c3dad85e3ce (patch) | |
tree | e7ea7ae4df8dc9b43f653e282a4ce13bf9302a3b /packages/sys-boot/grub-config-redcore/grub-config-redcore-1337-r3.exheres-0 | |
parent | 3bc9dd2d227b121078007577a520035f1e408dee (diff) |
sys-boot/grub-config-redcore : new package && sys-boot/grub : rdepend on sys-boot/grub-config-redcore
Diffstat (limited to 'packages/sys-boot/grub-config-redcore/grub-config-redcore-1337-r3.exheres-0')
-rw-r--r-- | packages/sys-boot/grub-config-redcore/grub-config-redcore-1337-r3.exheres-0 | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/packages/sys-boot/grub-config-redcore/grub-config-redcore-1337-r3.exheres-0 b/packages/sys-boot/grub-config-redcore/grub-config-redcore-1337-r3.exheres-0 new file mode 100644 index 0000000..aa10f04 --- /dev/null +++ b/packages/sys-boot/grub-config-redcore/grub-config-redcore-1337-r3.exheres-0 @@ -0,0 +1,45 @@ +# Copyright 2018 Redcore Linux Project +# Distributed under the terms of the GNU General Public License v2 + +SUMMARY="Redcore Linux Project grub config" +DESCRIPTION="Grub configuration file for Redcore Linux Project" +HOMEPAGE="https://redcorelinux.org" + +LICENCES="GPL-2" +SLOT="0" +PLATFORMS="~amd64" +MYOPTIONS="" + +DEPENDENCIES="" + +WORK="${FILES}" + +src_prepare() { + : +} + +src_configure() { + : +} + +src_compile() { + : +} + +src_install() { + dodir /etc/default + insinto /etc/default + newins "${FILES}"/grub grub.example +} + +pkg_preinst() { + if [[ -f ""${ROOT}"etc/default/grub" ]]; then + edo mv ""${ROOT}"etc/default/grub" ""${ROOT}"etc/default/grub.bak" + fi +} + +pkg_postinst() { + if [[ -f ""${ROOT}"etc/default/grub.bak" ]]; then + edo mv ""${ROOT}"etc/default/grub.bak" ""${ROOT}"etc/default/grub" + fi +} |