Package: lirc
Version: 0.7.1pre2-2
Severity: normal
On my buddy's mythtv box, udev creates /dev/lirc0 when the module loads.
Currently, lirc won't work with this config out of the box. I suggest
the following:
- Add autodetect support to the initscript - see the patch below.
This patch also corrects what I think was a logic error that would cause a
user specified DEVICE name to be overridden.
- Make autodetection the default behavior. debconf currently
asks you to create static devices. With this change, debconf should instead
give the user the choices of:
1) Autodetect
2) /dev/lirc
3) User specified device
If they choose to autodetect, the DEVICE= line in hardware.conf should be
left commented out. If they choose /dev/lirc, then fall into the 'Create
/dev/lirc if necessary' prompt. If they choose user-specified, just take
whatever they enter, and warn if its non-existant.
Actually, since autodetect should work 99% of the time, it might be
more user friendly to just eliminate the other options, and let the user
edit hardware.conf, if necessary.
--- lirc.orig 2005-04-06 18:55:34.628760167 -0600
+++ lirc 2005-04-06 19:09:34.025271671 -0600
@@ -28,11 +28,20 @@
build_args ()
{
local ARGS="$*"
+
+ ## Try to find an lirc device.
+ ## udev uses /dev/lirc0
+ ## static dev uses /dev/lirc
+ ## devfs uses /dev/lirc/0
+ if [ -z "$DEVICE" ]; then
+ for dev in /dev/lirc0 /dev/lirc /dev/lirc/0; do
+ if [ -c $dev ]; then
+ DEVICE="$dev"
+ break
+ fi
+ done
+ fi
if [ -n "$DEVICE" ] && [ "$DEVICE" != "none" ]; then
- if [ -d /dev/lirc ] && [ "$DEVICE" = "/dev/lirc" ];then
- #new device names
- DEVICE="/dev/lirc/0"
- fi
ARGS="--device=$DEVICE $ARGS"
fi
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]