busybox: some extra speed up

This commit is contained in:
Stefan Saraev 2013-01-18 22:38:17 +02:00
parent 8df8afbd06
commit 948e47ddf5
2 changed files with 12 additions and 6 deletions

View File

@ -60,6 +60,8 @@
} }
# read config files # read config files
for config in `ls /etc/profile.d/`; do for config in /etc/profile.d/*; do
. /etc/profile.d/$config if [ -f "$config" ] ; then
. $config
fi
done done

View File

@ -28,12 +28,16 @@
LD_LIBRARY_PATH="/usr/lib:/lib" LD_LIBRARY_PATH="/usr/lib:/lib"
# hack: add addons to $LD_LIBRARY_PATH # hack: add addons to $LD_LIBRARY_PATH
for addons in `find /storage/.xbmc/addons/* -name lib -type d`; do for addon in /storage/.xbmc/addons/*/lib; do
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$addons" if [ -d "$addon" ] ; then
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$addon"
fi
done done
for sys in `find /usr/lib/xbmc/addons/* -name lib -type d`; do for sys in /usr/lib/xbmc/addons/*/lib; do
if [ -d "$sys" ] ; then
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$sys" LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$sys"
fi
done done
export LD_LIBRARY_PATH export LD_LIBRARY_PATH