blob: aa10f043031eb41991e01bfc71b1ad6155f4459f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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
}
|