Public bug reported:

Binary package hint: irda-utils

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).

Note: udev rules tested with a KingSun KS-959 IRDA/USB adapter
(ks959_sir module).

** Affects: irda-utils (Ubuntu)
     Importance: Undecided
         Status: New

-- 
USB-IrDA udev hotplug support
https://bugs.launchpad.net/bugs/361431
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to