mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-12-02 14:26:47 +00:00
kodi: add shutdown hook to autostart
This commit is contained in:
parent
a5fc6876d8
commit
7ce98a88c8
@ -2,13 +2,14 @@
|
||||
Description=Kodi user autostart script
|
||||
Before=kodi.service
|
||||
After=network-online.target graphical.target
|
||||
ConditionPathExists=/storage/.config/autostart.sh
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
Environment=HOME=/storage
|
||||
ExecStart=-/bin/sh -c ". /etc/profile; exec /bin/sh /storage/.config/autostart.sh"
|
||||
ExecStart=-/bin/sh -c ". /etc/profile; test -f /storage/.config/autostart.sh && exec /bin/sh /storage/.config/autostart.sh"
|
||||
ExecStop=-/bin/sh -c ". /etc/profile; test -f /storage/.config/autostop.sh && exec /bin/sh /storage/.config/autostop.sh"
|
||||
RemainAfterExit=yes
|
||||
TimeoutStopSec=5min
|
||||
|
||||
[Install]
|
||||
WantedBy=kodi.service
|
||||
|
Loading…
Reference in New Issue
Block a user