diff options
Diffstat (limited to 'abs/core/runit-scripts/runitscripts')
-rwxr-xr-x | abs/core/runit-scripts/runitscripts/services/remotes/run | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/abs/core/runit-scripts/runitscripts/services/remotes/run b/abs/core/runit-scripts/runitscripts/services/remotes/run index 4040d7e..2363a3a 100755 --- a/abs/core/runit-scripts/runitscripts/services/remotes/run +++ b/abs/core/runit-scripts/runitscripts/services/remotes/run @@ -14,6 +14,10 @@ fi echo "`date` --- run started" >> $LOG +echo "====== lirc modules already loaded ==========" >> $LOG +lsmod |grep lirc >> $LOG +echo "====== lirc modules end =========" >> $LOG +echo >> $LOG #What is done in this file may not be enough to start your specific remote. #If that is true of your remote place your remote startup commands in: # /etc/runit/lirc.sh @@ -47,29 +51,36 @@ else if [ -n "$serial_port" ] then + echo "Serial device setup: $serial_port" >>$LOG #/dev/ttyS0 (COM1), port 0x3f8, irq 4 #/dev/ttyS1 (COM2), port 0x2f8, irq 3 #/dev/ttyS2 (COM3), port 0x3e8, irq 4 #/dev/ttyS3 (COM4), port 0x2e8, irq 3 - + printhl " Using serial device, loading module lirc_serial" case $serial_port in ttyS0) - FLAGS="io=0x3f8 irq=4" + FLAGS="io=0x3f8 irq=4 debug=1 " ;; ttyS1) - FLAGS="io=0x2f8 irq=3" + FLAGS="io=0x2f8 irq=3 debug=1" ;; ttyS2) - FLAGS="io=0x3e8 irq=4" + FLAGS="io=0x3e8 irq=4 debug=1" ;; ttyS3) - FLAGS="io=0x2e8 irq=3" + FLAGS="io=0x2e8 irq=3 debug=1" ;; esac - /usr/bin/setserial /dev/$serial_port uart none + + /usr/bin/setserial /dev/$serial_port uart none 2>&1 >> $LOG sleep 0.5 - /sbin/modprobe lirc_serial $FLAGS + echo "/sbin/modprobe lirc_serial $FLAGS" 2>&1 >> $LOG + /sbin/modprobe lirc_serial $FLAGS 2>&1 >> $LOG sleep 0.5 + echo "====== dmesg output ============" >>$LOG + dmesg | tail -10 >> $LOG + echo "======= dmesg end ===========" >>$LOG + fi if [ x$HostBlasterType = xCommandIR -o x$ReceiverType = xCommandIR ] |