##----------------------------------------------------------------------------- ## /etc/rc.d/rc500.lirc - start LIRC daemon __FLI4LVER__ ## ## P L E A S E R E A D T H E D O C U M E N T A T I O N , ## ## B I T T E U N B E D I N G T D I E D O K U M E N T A T I O N ## ## Creation: 2005-09-14 ## Creation: 2005-09-14 - Claas Hilbrecht ## Copyright (c) 2005 - Linum Software GmbH ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the License, or ## (at your option) any later version. ##----------------------------------------------------------------------------- if [ "$OPT_LIRC" = "yes" ] then begin_script LIRC "starting LIRC..." LIRC_SERIAL_PORT=`echo $LIRC_SERIAL_PORT | tr [A-F]` case $LIRC_SERIAL_PORT in 0x3f8) devnum=0 ;; 0x2f8) devnum=1 ;; 0x3e8) devnum=2 ;; 0x2e8) devnum=4 ;; esac setserial /dev/ttyS$devnum uart none mknod /dev/lirc c 61 0 do_modprobe lirc_dev do_modprobe lirc_serial io=$LIRC_SERIAL_PORT irq=$LIRC_SERIAL_IRQ softcarrier=0 mkdir -p /var/run/lirc lircd -d /dev/lirc end_script fi