From 86a5f887c93b8aeb2b48abf2d836c62dd5e067c5 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Mon, 15 May 2017 12:44:36 -0500 Subject: [PATCH] Add portage bashrc --- etc/portage/bashrc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 etc/portage/bashrc diff --git a/etc/portage/bashrc b/etc/portage/bashrc new file mode 100644 index 0000000..b406a6f --- /dev/null +++ b/etc/portage/bashrc @@ -0,0 +1,17 @@ +# vim: set ft=sh : + +post_src_prepare() { + if [[ $(type -t epatch_user) = function ]]; then + cd "${S}" + epatch_user + fi +} + +case ${EBUILD_PHASE} in +preinst|prerm) + for fs in / /usr /opt; do + mountpoint -q ${fs} || continue + test -w ${fs} || mount -oremount,rw ${fs} + done + ;; +esac