Add etc/profile.d/* reading to bash package

This commit is contained in:
Fredrik Fornwall 2015-06-20 09:12:04 -04:00
parent 0f99c9d9a3
commit 5b8bb72c57
2 changed files with 12 additions and 0 deletions

View File

@ -17,3 +17,7 @@ termux_step_pre_configure () {
patch -p0 -i $PATCHFILE
done
}
termux_step_post_make_install () {
sed "s|@TERMUX_PREFIX@|$TERMUX_PREFIX|" $TERMUX_PKG_BUILDER_DIR/etc-profile > $TERMUX_PREFIX/etc/profile
}

View File

@ -0,0 +1,8 @@
if [ -d @TERMUX_PREFIX@/etc/profile.d ]; then
for i in @TERMUX_PREFIX@/etc/profile.d/*.sh; do
if [ -r $i ]; then
. $i
fi
done
unset i
fi