Browse Source

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

android-5
Fredrik Fornwall 10 years ago
parent
commit
5b8bb72c57
  1. 4
      packages/bash/build.sh
  2. 8
      packages/bash/etc-profile

4
packages/bash/build.sh

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

8
packages/bash/etc-profile

@ -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
Loading…
Cancel
Save