summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runitscripts
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2013-12-30 18:27:08 (GMT)
committerJames Meyer <james.meyer@operamail.com>2013-12-30 18:27:08 (GMT)
commitc0973e515e82c694822f44c252bd9308c48e8395 (patch)
tree7e83f0125966acce8ad56de3811ec104b51af49a /abs/core/runit-scripts/runitscripts
parent912e7ca6626505c47c3c582efb74ff26bc418a37 (diff)
downloadlinhes_pkgbuild-c0973e515e82c694822f44c252bd9308c48e8395.zip
linhes_pkgbuild-c0973e515e82c694822f44c252bd9308c48e8395.tar.gz
linhes_pkgbuild-c0973e515e82c694822f44c252bd9308c48e8395.tar.bz2
runit-scripts: remotes, add more debugging and unload lirc_serial before load
refs #950
Diffstat (limited to 'abs/core/runit-scripts/runitscripts')
-rwxr-xr-xabs/core/runit-scripts/runitscripts/services/remotes/run38
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