media-tv/kodi: fork official ebuild to support standalone mode (without X) and odroid-c1/c1+
This commit is contained in:
parent
c48c034e12
commit
66adeddb1e
9 changed files with 934 additions and 0 deletions
27
media-tv/kodi/files/kodi-initd
Normal file
27
media-tv/kodi/files/kodi-initd
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#!/sbin/openrc-run
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
description="Start and stop Kodi"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
need localmount
|
||||
need local
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting kodi"
|
||||
if [ -z "${KODI_USER}" ]; then
|
||||
eend "No user defined in /etc/conf.d/kodi"
|
||||
fi
|
||||
|
||||
start-stop-daemon --start --background --make-pidfile --pidfile /var/run/kodi.pid -u "${KODI_USER}" --exec /usr/lib/kodi/kodi.bin -- --standalone ${KODI_OPTS}
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping kodi"
|
||||
start-stop-daemon --stop --pidfile /var/run/kodi.pid
|
||||
eend $?
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue