diff options
5 files changed, 62 insertions, 25 deletions
diff --git a/abs/core-testing/LinHES-system/load-modules-mythvantage.sh b/abs/core-testing/LinHES-system/load-modules-mythvantage.sh index 4f5ea91..06c8a96 100755 --- a/abs/core-testing/LinHES-system/load-modules-mythvantage.sh +++ b/abs/core-testing/LinHES-system/load-modules-mythvantage.sh @@ -38,7 +38,23 @@ UNLOAD|unload ) ttyS3) FLAGS="io=0x2f8 irq=3" ;; esac /usr/bin/setserial /dev/$ReceiverSerialport uart none 2>/dev/null - /sbin/modprobe lirc_serial $FLAGS 2>/dev/null + if [ $? = 0 ] + then + /sbin/modprobe lirc_serial $FLAGS 2>/dev/nulla + fi + elif [ x$HostBlasterType = xSerial ] + then + case $HostSerialPort_blasterlirc in + ttyS0) FLAGS="io=0x3f8 irq=4";; + ttyS1) FLAGS="io=0x2f8 irq=3" ;; + ttyS2) FLAGS="io=0x3e8 irq=4" ;; + ttyS3) FLAGS="io=0x2f8 irq=3" ;; + esac + /usr/bin/setserial /dev/$HostSerialPort_blasterlirc uart none 2>/dev/null + if [ $? = 0 ] + then + /sbin/modprobe lirc_serial $FLAGS 2>/dev/nulla + fi fi fi /sbin/modprobe $module 2> /dev/null diff --git a/abs/core-testing/runit-scripts/PKGBUILD b/abs/core-testing/runit-scripts/PKGBUILD index d94fc91..6596371 100755 --- a/abs/core-testing/runit-scripts/PKGBUILD +++ b/abs/core-testing/runit-scripts/PKGBUILD @@ -1,6 +1,6 @@ pkgname=runit-scripts pkgver=1.8.0 -pkgrel=77 +pkgrel=83 pkgdesc="collection of startup scripts for runit" url="http://smarden.org/runit/" license="BSD" diff --git a/abs/core-testing/runit-scripts/runitscripts/services/igdaemon/run b/abs/core-testing/runit-scripts/runitscripts/services/igdaemon/run new file mode 100755 index 0000000..ea4f33b --- /dev/null +++ b/abs/core-testing/runit-scripts/runitscripts/services/igdaemon/run @@ -0,0 +1,9 @@ +#!/bin/sh +exec 2>&1 +export TERM=linux +. /etc/rc.conf +. /etc/rc.d/functions +stat_runit "Starting IguanaWorks IR daemon" + + +exec /usr/bin/igdaemon --no-ids -n -l /var/log/igdaemon.log diff --git a/abs/core-testing/runit-scripts/runitscripts/services/lircd/run b/abs/core-testing/runit-scripts/runitscripts/services/lircd/run index 914f5cf..59206ae 100755 --- a/abs/core-testing/runit-scripts/runitscripts/services/lircd/run +++ b/abs/core-testing/runit-scripts/runitscripts/services/lircd/run @@ -59,36 +59,39 @@ else sleep .5 /sbin/modprobe lirc_serial $FLAGS sleep .5 - fi - if [ x$HostBlasterType = xSerial ] + elif [ x$HostBlasterType = xSerial ] then - case $HostSerialPort_blasterlirc in - ttyS0) - FLAGS="io=0x3f8 irq=4" - ;; - ttyS1) - FLAGS="io=0x2f8 irq=3" - ;; - ttyS2) - FLAGS="io=0x3e8 irq=4" - ;; - ttyS3) - FLAGS="io=0x2f8 irq=3" - ;; - esac - /usr/bin/setserial /dev/$ReceiverSerialport uart none - sleep .5 - /sbin/modprobe lirc_serial $FLAGS - sleep .5 + case $HostSerialPort_blasterlirc in + ttyS0) + FLAGS="io=0x3f8 irq=4" + ;; + ttyS1) + FLAGS="io=0x2f8 irq=3" + ;; + ttyS2) + FLAGS="io=0x3e8 irq=4" + ;; + ttyS3) + FLAGS="io=0x2f8 irq=3" + ;; + esac + /usr/bin/setserial /dev/$ReceiverSerialport uart none + sleep .5 + /sbin/modprobe lirc_serial $FLAGS + sleep .5 fi dvico_detect - if [ x$HostBlasterType = xCommandIR -o x$HostBlasterType = xCommandIR ] + if [ x$HostBlasterType = xCommandIR -o x$ReceiverType = xCommandIR ] then - rmmod commandir 2>/dev/null CMD="/usr/sbin/lircd -n --driver=commandir" printhl " Using commandir" - + $CMD >>$LOG 2>>$LOG + elif [ x$HostBlasterType = xiguanaIR-usb -o x$ReceiverType = xiguanaIR-usb ] + then + sv start igdaemon + CMD="/usr/sbin/lircd -n --driver=iguanaIR" + printhl " Using iguanaIR usb" $CMD >>$LOG 2>>$LOG else LASTCMD="" diff --git a/abs/core-testing/runit-scripts/runitscripts/services/tatir/run b/abs/core-testing/runit-scripts/runitscripts/services/tatir/run new file mode 100755 index 0000000..d6fc863 --- /dev/null +++ b/abs/core-testing/runit-scripts/runitscripts/services/tatir/run @@ -0,0 +1,9 @@ +#!/bin/sh +exec 2>&1 +export TERM=linux +. /etc/rc.conf +. /etc/rc.d/functions +stat_runit "Starting tatir" + + +exec /usr/bin/PyroUsb.py > /dev/null |