Subject: irda-utils: USB-IrDA udev hotplug support
Package: irda-utils
Version: 0.9.18-10
Severity: wishlist

*** Please type your report below this line ***

For make USB-IrDA devices hotpluggable and working instantly, needs a udev
rule that call irattach for new device plugged in. Obviously we need to kill
irattach on plug out.

This is a working rule for udev:

SUBSYSTEM=="net", SUBSYSTEMS=="usb", ACTION=="add", ATTR{type}=="783",
RUN+="/sbin/start-stop-daemon --start --quiet --pidfile
/var/run/irattach.pid --startas /usr/sbin/irattach -- $env{INTERFACE} -s"

SUBSYSTEM=="net", SUBSYSTEMS=="usb", ACTION=="remove", KERNEL=="irda*",
RUN+="/sbin/start-stop-daemon --stop --quiet --oknodo --name irattach
--pidfile /var/run/irattach.pid"

This rule can be installed on /etc/udev/rules.d during irda-utils package
installation.

Same things related PnP autoconfig via udev instead init script
(irda-setup).

https://bugs.launchpad.net/ubuntu/+source/irda-utils/+bug/361431

Reply via email to