Merge pull request #3764 from stefansaraev/addonprofiles

[RFC] allow addons to ship profile.d scripts
This commit is contained in:
Stefan Saraev 2015-01-12 19:39:02 +02:00
commit 6502535fd5

View File

@ -16,6 +16,13 @@
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>. # 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() { oe_setup_addon() {
if [ ! -z $1 ] ; then if [ ! -z $1 ] ; then
DEF="/storage/.kodi/addons/$1/settings-default.xml" DEF="/storage/.kodi/addons/$1/settings-default.xml"