summaryrefslogtreecommitdiff
path: root/packages/sys-boot/grub-config-redcore/grub-config-redcore-1337-r3.exheres-0
diff options
context:
space:
mode:
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-045
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
+}