summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-kernel/gentoo-sources-kernelimage/files/bashrc')
-rw-r--r--sys-kernel/gentoo-sources-kernelimage/files/bashrc24
1 files changed, 5 insertions, 19 deletions
diff --git a/sys-kernel/gentoo-sources-kernelimage/files/bashrc b/sys-kernel/gentoo-sources-kernelimage/files/bashrc
index 68d7ddf..f16aa53 100644
--- a/sys-kernel/gentoo-sources-kernelimage/files/bashrc
+++ b/sys-kernel/gentoo-sources-kernelimage/files/bashrc
@@ -1,29 +1,15 @@
-function post_pkg_postinst() {
- if [ "${CATEGORY}"/"${PN}" = "sys-kernel/gentoo-sources-kernelimage" ]
+# FOR THE FIRST MERGE
+function pre_pkg_postinst() {
+ if [ "${CATEGORY}"/"${PN}" = "sys-kernel/gentoo-sources-kernelimage" ] && [ -z "${REPLACING_VERSIONS}" ]
then
grub2-mkconfig -o /boot/grub/grub.cfg || die
- umount /boot || die
- fi
-}
-
-function pre_pkg_preinst() {
- if [ "${CATEGORY}"/"${PN}" = "sys-kernel/gentoo-sources-kernelimage" ]
- then
- mount /boot || die
- fi
-}
-
-function pre_pkg_prerm() {
- if [ "${CATEGORY}"/"${PN}" = "sys-kernel/gentoo-sources-kernelimage" ]
- then
- mount /boot || die
fi
}
-function post_pkg_postrm() {
+# FOR THE SUCCESSIVE MERGES OR UNMERGE
+function pre_pkg_postrm() {
if [ "${CATEGORY}"/"${PN}" = "sys-kernel/gentoo-sources-kernelimage" ]
then
grub2-mkconfig -o /boot/grub/grub.cfg || die
- umount /boot || die
fi
}