summaryrefslogtreecommitdiff
path: root/Technology/Gentoo/index.md
diff options
context:
space:
mode:
authornic <ra@afu.re>2024-08-02 20:41:53 -0400
committernic <ra@afu.re>2024-08-02 20:41:53 -0400
commit1874b2c8eaaa5b3a368c357444f42e60ac831111 (patch)
treee4a15ebcb011edbf572b66521b0dfe5afa2bc3dc /Technology/Gentoo/index.md
parent312da8d4747f2cfb6246bef17c3260202ff06d70 (diff)
Auto from nzxt - Fri 02 Aug 2024 08:41:53 PM EDT
Diffstat (limited to 'Technology/Gentoo/index.md')
-rw-r--r--Technology/Gentoo/index.md42
1 files changed, 42 insertions, 0 deletions
diff --git a/Technology/Gentoo/index.md b/Technology/Gentoo/index.md
index c4a466d..425c90d 100644
--- a/Technology/Gentoo/index.md
+++ b/Technology/Gentoo/index.md
@@ -34,3 +34,45 @@ custom gentoo usb with own tool to install like custom arch-root & fstabgen arti
magick -trim 425px-Larry-the-cow.svg.png Larry-the-cow-1.png
magick -trim -transparent white Larry-the-cow-1.png Larry-the-cow.png
+
+
+
+# bashrc portage - run post hook
+
+mkdir -p /etc/portage/postinst.d/
+chmod 755 /etc/portage/postinst.d/
+
+
+
+vim /etc/portage/bashrc
+#!/bin/bash
+
+POSTINST_BASE="/etc/portage/postinst.d/"
+
+post_pkg_postinst()
+{
+ local POSTINST_SCRIPT
+
+ if [[ "x${CATEGORY}" == "xvirtual" ]']
+ then
+ return 0
+ fi
+
+ for POSTINST_SCRIPT in ${POSTINST_BASE%/}/{all,${CATEGORY}/{${P}-${PR},${P},${PN}}{:$SLOT},}}
+ do
+ if [[ -x "${POSTINST_SCRIPT}" ]']
+ then
+ einfo "Running post-installation script ${POSTINST_SCRIPT} ..."
+ "${POSTINST_SCRIPT}"
+ fi
+ done
+}
+
+then put script in
+/etc/portage/postinst.d/sys-kernel/gentoo-kernel-bin
+(with a shebang and make it executable)
+chmod +x
+script will be run as root - set -eu on top script ???
+
+
+/etc/portage/postinst.d/app-misc/neofetch