# 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 }