mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
atvclient: start atvclient via systemd service from udev
This partly reverts commit 60536160dbc180b21d3f84a238bd5f7da2550ef0. Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
b9c46da46f
commit
1c19cc3c02
@ -34,3 +34,4 @@ PKG_LONGDESC="atvclient is a background application for Linux that reads input f
|
||||
|
||||
PKG_IS_ADDON="no"
|
||||
PKG_AUTORECONF="yes"
|
||||
|
||||
|
@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
Description=ATV client remote support
|
||||
After=syslog.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/sbin/atvclient -m
|
||||
KillMode=process
|
||||
|
@ -1,2 +1,3 @@
|
||||
# must be started in a shell, otherwise it exits after sometime for unknown reasons
|
||||
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="824[012]", RUN+="/bin/sh -c '/usr/sbin/atvclient -m &'"
|
||||
ACTION=="add", SUBSYSTEM=="usb", \
|
||||
ATTR{idVendor}=="05ac", ATTR{idProduct}=="824[012]", \
|
||||
TAG+="systemd", ENV{SYSTEMD_WANTS}+="atvclient.service"
|
||||
|
Loading…
x
Reference in New Issue
Block a user