diff options
author | James Meyer <james.meyer@operamail.com> | 2009-04-02 19:10:33 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2009-04-02 19:10:33 (GMT) |
commit | aa37813e3606a4b55c842d15a5dde276cff4abeb (patch) | |
tree | 4b7b3c87da543809a3c6b9e345272035ea33574f /abs/core-testing/runit-scripts/runitscripts/services | |
parent | 951431ba42a422cf059666d8000f7d3f5fd8449a (diff) | |
download | linhes_pkgbuild-aa37813e3606a4b55c842d15a5dde276cff4abeb.zip linhes_pkgbuild-aa37813e3606a4b55c842d15a5dde276cff4abeb.tar.gz linhes_pkgbuild-aa37813e3606a4b55c842d15a5dde276cff4abeb.tar.bz2 |
runit-scripts: more work to fix hauppage
Diffstat (limited to 'abs/core-testing/runit-scripts/runitscripts/services')
-rwxr-xr-x | abs/core-testing/runit-scripts/runitscripts/services/lircd/run | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/abs/core-testing/runit-scripts/runitscripts/services/lircd/run b/abs/core-testing/runit-scripts/runitscripts/services/lircd/run index 242dcb3..1c5d8ff 100755 --- a/abs/core-testing/runit-scripts/runitscripts/services/lircd/run +++ b/abs/core-testing/runit-scripts/runitscripts/services/lircd/run @@ -2,6 +2,11 @@ exec 2>&1 #since what we do may not be enough #if your one of those people, this is where you place your stuff +LOG=/tmp/lirc.log +if [ -f $LOG ] +then + rm -f $LOG +fi if [ -f /etc/runit/lirc.sh ] then #program must not terminate. @@ -21,7 +26,6 @@ else num_lirc=`ls -la /dev/lirc[0-9] |wc -l` num_lirc=$((num_lirc-1)) - echo $num_lirc #/dev/ttys0 (COM1), port 0x3f8, irq 4 #/dev/ttys1 (COM2), port 0x2f8, irq 3 @@ -44,7 +48,9 @@ else ;; esac /usr/bin/setserial /dev/$ReceiverSerialport uart none + sleep .5 /sbin/modprobe lirc_serial $FLAGS + sleep .5 fi if [ x$HostBlasterType = xSerial ] then @@ -63,7 +69,9 @@ else ;; esac /usr/bin/setserial /dev/$ReceiverSerialport uart none + sleep .5 /sbin/modprobe lirc_serial $FLAGS + sleep .5 fi dvico_detect @@ -74,27 +82,27 @@ else do CMD="/usr/sbin/lircd -d /dev/lirc$i --output=/dev/lircd$i --pidfile=/var/run/lircd$i.pid --listen=876$i" echo $CMD - $CMD + $CMD >>$LOG 2>>$LOG LASTCMD="--connect=localhost:876$i $LASTCMD " done if [ $RunDvico = "true" -a $num_lirc -lt 0 ] then #only run dvicio LCMD="/usr/sbin/lircd -n -d /dev/usb/hiddev0 --driver=dvico --output /dev/lircd" - echo $LCMD - exec $LCMD +# echo $LCMD + exec $LCMD >>$LOG 2>>$LOG elif [ $RunDvico = true -a $num_lirc -gt -1 ] then #chain them together i=$((i+1)) CMD="/usr/sbin/lircd -d /dev/usb/hiddev0 --driver=dvico --output=/dev/lircd$i --pidfile=/var/run/lircd$i.pid --listen=876$i" - echo $CMD - $CMD +# echo $CMD + $CMD >> $LOG LASTCMD="--connect=localhost:876$i $LASTCMD " - /usr/sbin/lircd -n -d /dev/lirc0 --output /dev/lircd $LASTCMD + /usr/sbin/lircd -n -d /dev/lirc0 --output /dev/lircd $LASTCMD >>$LOG 2>>$LOG else LCMD="/usr/sbin/lircd -n -d /dev/lirc0 --output /dev/lircd $LASTCMD" - echo $LCMD - exec $LCMD +# echo $LCMD + exec $LCMD >>$LOG 2>>$LOG fi -fi
\ No newline at end of file +fi |