Add portage bashrc

remotes/origin/HEAD
Dustin 2017-05-15 12:44:36 -05:00
parent 30192212d8
commit 86a5f887c9
1 changed files with 17 additions and 0 deletions

17
etc/portage/bashrc Normal file
View File

@ -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