Thursday, August 30, 2007

My LIRC startup script

For lirc compiled from source version 0.8.2. For Debian Lenny with serial lirc device, goes in /etc/rc2.d/S99lirc. You also need to load the lirc_dev module, add it to /etc/modules to load it automatically.

#!/bin/bash
setserial /dev/ttyS0 uart none
setserial /dev/ttyS1 uart none

/sbin/modprobe lirc_serial
/usr/local/sbin/lircd --device /dev/lirc/0 /etc/lircd.conf

No comments: