diff options
Diffstat (limited to 'abs/core/runit-scripts/runitscripts')
-rwxr-xr-x | abs/core/runit-scripts/runitscripts/services/remotes/run | 38 |
1 files changed, 32 insertions, 6 deletions
diff --git a/abs/core/runit-scripts/runitscripts/services/remotes/run b/abs/core/runit-scripts/runitscripts/services/remotes/run index 2363a3a..19c6375 100755 --- a/abs/core/runit-scripts/runitscripts/services/remotes/run +++ b/abs/core/runit-scripts/runitscripts/services/remotes/run @@ -72,13 +72,35 @@ else ;; esac - /usr/bin/setserial /dev/$serial_port uart none 2>&1 >> $LOG - sleep 0.5 - echo "/sbin/modprobe lirc_serial $FLAGS" 2>&1 >> $LOG - /sbin/modprobe lirc_serial $FLAGS 2>&1 >> $LOG - sleep 0.5 + #set_serial debugging + /usr/bin/setserial -va /dev/$serial_port 2>&1 >> $LOG + echo '' 2>&1 >> $LOG + + #run set_serial command + /usr/bin/setserial -v /dev/$serial_port uart none 2>&1 >> $LOG + echo '' 2>&1 >> $LOG + + #set_serial debugging + /usr/bin/setserial -va /dev/$serial_port 2>&1 >> $LOG + sleep 1 + + #remove lirc_serial + echo "*Removing lirc_serial" 2>&1 >> $LOG + /usr/bin/rmmod -v lirc_serial 2>> $LOG + /usr/bin/rmmod -v lirc_dev 2>> $LOG + + echo "*Loading lirc_serial" 2>&1 >> $LOG + echo "/sbin/modprobe lirc_serial $FLAGS" 2>&1 >> $LOG + /sbin/modprobe -v lirc_serial $FLAGS 2>&1 >> $LOG + + echo "====== lirc modules after load ==========" >> $LOG + lsmod |grep lirc >> $LOG + echo "====== lirc modules end =========" >> $LOG + + sleep 1 + echo "====== dmesg output ============" >>$LOG - dmesg | tail -10 >> $LOG + dmesg | tail -20 >> $LOG echo "======= dmesg end ===========" >>$LOG fi @@ -212,6 +234,10 @@ else echo $LASTCMD >>$LOG echo "Disable in kernel remote driver" >>$LOG in_kernel_support "disable" + + + + echo "Starting remotes from $LCMD" >>$LOG exec $LCMD >>$LOG 2>>$LOG |