Package: lirc
Version: 0.7.1pre2-6
Severity: normal
Hello,
My machine reboots often.
It uses udev.
udev does not create /dev/lirc and /dev/lircm.
/etc/init.d/lirc should do it, then.
I copied the make_devices function
from /var/lib/dpkg/info/lirc.postinst
and added a call to it on start.
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/dash
Kernel: Linux 2.6.11-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages lirc depends on:
ii debconf [debconf-2.0] 1.4.49 Debian configuration management sy
ii dialog 1.0-20050306-1 Displays user-friendly dialog boxe
ii libasound2 1.0.8-3 ALSA library
ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an
ii liblircclient0 0.7.1pre2-6 LIRC client library
ii libusb-0.1-4 2:0.1.10a-9 userspace USB programming library
-- debconf information excluded
Index: etc/init.d/lirc
===================================================================
--- etc/init.d/lirc (revision 43)
+++ etc/init.d/lirc (working copy)
@@ -2,6 +2,25 @@
#
#
+make_devices ()
+{
+ if [ ! -e /dev/lirc ]; then
+ mknod /dev/lirc c 61 0
+ chown root.root /dev/lirc
+ chmod 660 /dev/lirc
+ fi
+ if [ ! -e /dev/lircd ]; then
+ mknod /dev/lircd p
+ chown root.root /dev/lircd
+ chmod 666 /dev/lircd
+ fi
+ if [ ! -e /dev/lircm ]; then
+ mknod /dev/lircm p
+ chown root.root /dev/lircm
+ chmod 666 /dev/lircm
+ fi
+}
+
load_modules ()
{
local MODULES_MISSING=false
@@ -73,6 +92,7 @@
case "$1" in
start)
+ make_devices
if [ "$LOAD_MODULES" = "true" ] && [ "$START_LIRCD" = "true" ]; then
load_modules $MODULES
fi