mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
Merge pull request #4755 from lrusak/systemd-addon-wrapper
kodi: adjust systemd-addon-wrapper for systemd-229
This commit is contained in:
commit
22e71ca717
@ -25,8 +25,7 @@ if [ -f "/storage/.kodi/addons/$1/system.d/$1.service" ] ; then
|
|||||||
if [ "_$2" = "_1" ] ; then
|
if [ "_$2" = "_1" ] ; then
|
||||||
# disable = true: cleanup
|
# disable = true: cleanup
|
||||||
systemctl stop "$1.service"
|
systemctl stop "$1.service"
|
||||||
systemctl disable "/storage/.kodi/addons/$1/system.d/$1.service"
|
systemctl disable "$1.service"
|
||||||
rm -f "/storage/.config/system.d/$1.service" # just in case..
|
|
||||||
else
|
else
|
||||||
# disable = false: setup
|
# disable = false: setup
|
||||||
systemctl enable "/storage/.kodi/addons/$1/system.d/$1.service"
|
systemctl enable "/storage/.kodi/addons/$1/system.d/$1.service"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user