mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
atvclient: start atvclient via systemd service from udev
This partly reverts commit 60536160db.
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user