summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runitscripts/services/remotes/finish
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-04-23 21:12:08 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-04-23 21:12:08 (GMT)
commit4bc7351abd5eae587f2f01dc349329ac29fd8b17 (patch)
treeb3c8eec80ccb1e73e9a15ebf7be3f79a44083e50 /abs/core/runit-scripts/runitscripts/services/remotes/finish
parentdf3c3c139d7eedad4ab8be383c66a5518322157c (diff)
parent8c0d396181e43158de3f54c479456ca7ed052248 (diff)
downloadlinhes_pkgbuild-4bc7351abd5eae587f2f01dc349329ac29fd8b17.zip
linhes_pkgbuild-4bc7351abd5eae587f2f01dc349329ac29fd8b17.tar.gz
linhes_pkgbuild-4bc7351abd5eae587f2f01dc349329ac29fd8b17.tar.bz2
Merge branch 'testing' of git@linhes.org:linhes_pkgbuild into testing
Diffstat (limited to 'abs/core/runit-scripts/runitscripts/services/remotes/finish')
-rwxr-xr-xabs/core/runit-scripts/runitscripts/services/remotes/finish8
1 files changed, 6 insertions, 2 deletions
diff --git a/abs/core/runit-scripts/runitscripts/services/remotes/finish b/abs/core/runit-scripts/runitscripts/services/remotes/finish
index ac04a33..c1a5554 100755
--- a/abs/core/runit-scripts/runitscripts/services/remotes/finish
+++ b/abs/core/runit-scripts/runitscripts/services/remotes/finish
@@ -4,6 +4,9 @@ export TERM=linux
. /etc/rc.d/functions
. /usr/MythVantage/bin/install_functions.sh
+LOG=/tmp/remotes.log
+echo "`date` --- finish started" >> $LOG
+
killall -9 lircd 2>/dev/null
rm -f /var/run/lirc*.pid
[ -e /etc/sv/remotes/.runtime ] || mkdir -p /etc/sv/remotes/.runtime
@@ -12,10 +15,11 @@ numfiles=`/usr/bin/file_time_offset.py -s4 -d/etc/sv/remotes/.runtime `
if [ $numfiles -gt 3 ]
then
rm -f /etc/sv/remotes/.runtime/* 2>/dev/null
- sv stop remotes
+ sv stop remotes >> $LOG
printhl " remotes is not able to start, disabling it"
+ echo " remotes is not able to start, disabling it" >> $LOG
fi
-
+echo "Enable in kernel remote driver" >> $LOG
in_kernel_support "enable"