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
for config in `ls /etc/profile.d/`; do
. /etc/profile.d/$config
for config in /etc/profile.d/*; do
if [ -f "$config" ] ; then
. $config
fi
done

View File

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