diff -Naur /home/brianr/irda-utils-0.9.14/etc/gentoo/irda.conf ./etc/gentoo/irda.conf --- /home/brianr/irda-utils-0.9.14/etc/gentoo/irda.conf Wed Dec 31 19:00:00 1969 +++ ./etc/gentoo/irda.conf Tue Jun 25 14:36:10 2002 @@ -0,0 +1,6 @@ +#Set to yes to enable IRDA +IRDA=yes +IRDADEV=/dev/ttyS1 +#Set (optional) Dongle name here +#DONGLE=actisys+ +DISCOVERY=yes diff -Naur /home/brianr/irda-utils-0.9.14/etc/gentoo/irda.rc ./etc/gentoo/irda.rc --- /home/brianr/irda-utils-0.9.14/etc/gentoo/irda.rc Wed Dec 31 19:00:00 1969 +++ ./etc/gentoo/irda.rc Tue Jun 25 14:38:09 2002 @@ -0,0 +1,38 @@ +#!/sbin/runscript +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later + +checkconfig() { + if [ -z "$IRDA" ] || [ -z "$IRDADEV" ] ; then + eerror "You need to setup IRDA and IRDADEV in /etc/conf.d/irda first" + return 1 + fi +} + +start() { + checkconfig || return 1 + + # Check that irda is enabled. + [ ${IRDA} = "no" ] && return 1 + + [ -f /usr/sbin/irattach ] || return 1 + + local ARGS="" + if [ $DONGLE ]; then + ARGS="$ARGS -d $DONGLE" + fi + if [ "$DISCOVERY" = "yes" ];then + ARGS="$ARGS -s" + fi + + # Attach irda device + ebegin "Starting IrDA" + start-stop-daemon --start --quiet --pidfile /var/run/irda.pid \ + --exec /usr/sbin/irattach -- ${IRDADEV} ${ARGS} + eend ${?} +} + +stop() { + ebegin "Shutting down IrDA" + start-stop-daemon --stop --quiet --pidfile /var/run/irda.pid + eend ${?} +}