diff --git a/packages/mediacenter/xbmc/package.mk b/packages/mediacenter/xbmc/package.mk index db3f39a241..766c177e5e 100644 --- a/packages/mediacenter/xbmc/package.mk +++ b/packages/mediacenter/xbmc/package.mk @@ -421,6 +421,8 @@ post_makeinstall_target() { cp $PKG_DIR/scripts/kodi-config $INSTALL/usr/lib/kodi cp $PKG_DIR/scripts/kodi-hacks $INSTALL/usr/lib/kodi cp $PKG_DIR/scripts/kodi-sources $INSTALL/usr/lib/kodi +# TODO: remove this later: + cp $PKG_DIR/scripts/kodi-rebrand $INSTALL/usr/lib/kodi mkdir -p $INSTALL/usr/lib/openelec cp $PKG_DIR/scripts/systemd-addon-wrapper $INSTALL/usr/lib/openelec @@ -506,4 +508,7 @@ post_install() { enable_service kodi-waitonnetwork.service enable_service kodi.service enable_service kodi-lirc-suspend.service + +# TODO: remove this later + enable_service kodi-rebrand.service } diff --git a/packages/mediacenter/xbmc/scripts/kodi-rebrand b/packages/mediacenter/xbmc/scripts/kodi-rebrand new file mode 100755 index 0000000000..3897290205 --- /dev/null +++ b/packages/mediacenter/xbmc/scripts/kodi-rebrand @@ -0,0 +1,26 @@ +#!/bin/sh +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv) +# +# OpenELEC is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# OpenELEC is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC. If not, see . +################################################################################ + +# move XBMC configdir to Kodi configdir +# TODO: remove the .xbmc symlink later + +if [ -d /storage/.xbmc -a ! -d /storage/.kodi ]; then + mv /storage/.xbmc /storage/.kodi + ln -sf .kodi /storage/.xbmc +fi diff --git a/packages/mediacenter/xbmc/system.d/kodi-rebrand.service b/packages/mediacenter/xbmc/system.d/kodi-rebrand.service new file mode 100644 index 0000000000..04d4cd72d7 --- /dev/null +++ b/packages/mediacenter/xbmc/system.d/kodi-rebrand.service @@ -0,0 +1,13 @@ +[Unit] +Description=Kodi config dir rebrand +DefaultDependencies=no +Before=local-fs.target shutdown.target +Conflicts=shutdown.target + +[Service] +Type=oneshot +ExecStart=/usr/lib/kodi/kodi-rebrand +RemainAfterExit=yes + +[Install] +WantedBy=local-fs.target