allow addons to ship profile.d scripts

This commit is contained in:
Stefan Saraev 2015-01-09 20:05:16 +02:00 committed by Stephan Raue
parent 3f4e9b5fce
commit 72b616100b

View File

@ -16,6 +16,13 @@
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################
# addons profile.d/*.profile
for config in /storage/.kodi/addons/*/profile.d/*.profile; do
if [ -f "$config" ] ; then
. $config
fi
done
oe_setup_addon() {
if [ ! -z $1 ] ; then
DEF="/storage/.kodi/addons/$1/settings-default.xml"