Comment 2 for bug 695767

Revision history for this message
Hawk (beehock) wrote :

The following changes to /var/lib/dpkg/info/lirc.postinst seem to fix the issue. Its working for me. Now have to figure out how to submit this change upstream.

228,229c228,230
< EVENTS=`ls /dev/input | grep -v "by-path" | sed 's/^/,\ \/dev\/input\//' | tr '\n' '\0'`
< db_subst lirc/dev_input_device EVENTS $EVENTS_BY_PATH $EVENTS
---
> EVENTS_BY_ID=`ls /dev/input/by-id | sed 's/^/,\ \/dev\/input\/by-id\//' | tr '\n' '\0'`
> EVENTS=`ls /dev/input | grep -v "by-path" | grep -v "by-id" | sed 's/^/,\ \/dev\/input\//' | tr '\n' '\0'`
> db_subst lirc/dev_input_device EVENTS $EVENTS_BY_PATH $EVENTS_BY_ID $EVENTS