service.openelec.settings: make bluetooth support optional

This commit is contained in:
Stefan Saraev 2013-07-20 21:05:05 +03:00
parent d94ad1f424
commit 4461976381

View File

@ -23,6 +23,10 @@
. config/options $1
cd $PKG_BUILD
# bluetooth is optional
if [ ! "$BLUETOOTH_SUPPORT" = yes ]; then
rm -f resources/lib/modules/bluetooth.py
fi
python -Wi -t -B $ROOT/$TOOLCHAIN/lib/python2.7/compileall.py ./resources/lib/ -f
rm -rf `find ./resources/lib/ -name "*.py"`