File: lirc.udev

package info (click to toggle)
lirc 0.9.0~pre1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 6,844 kB
  • sloc: ansic: 44,120; sh: 11,159; makefile: 430; python: 108; perl: 106
file content (11 lines) | stat: -rw-r--r-- 544 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
#These rules are currently only adapted for a single lirc device.
#They are mainly used for hotplugability of the USB devices
#So that the user won't have to restart the lircd process.
#
#If a user has multiple lirc devices, and removes one of them
#The other will stop working as well.  This is a side effect
#of both this udev script as well as the lirc architecture
#Of chaining lircd processes.
ACTION=="add", KERNEL=="lirc[0-9]", RUN="/etc/init.d/lirc restart udev"
ACTION=="remove", KERNEL=="lirc[0-9]", RUN="/etc/init.d/lirc stop udev"