[Lunar-commits] <moonbase> lirc: Fixing POST_INSTALL
Jason Johnston
jason at jjfam.net
Sat Nov 20 02:43:16 CET 2010
commit bacab0ed133a0fabba5a126cdc1c8603866e4495
Author: Jason Johnston <jason at jjfam.net>
Date: Fri Nov 19 19:43:16 2010 -0600
lirc: Fixing POST_INSTALL
Fixing POST_INSTALL restart logic to check for /var/run/lirc/lircd.pid before trying to restart. Otherwise lin will fail with on the first install.
---
utils/lirc/POST_INSTALL | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/utils/lirc/POST_INSTALL b/utils/lirc/POST_INSTALL
index b97ccd6..bccdd84 100644
--- a/utils/lirc/POST_INSTALL
+++ b/utils/lirc/POST_INSTALL
@@ -1,3 +1,5 @@
if [ -x /etc/init.d/lirc.sh ]; then
- /etc/init.d/lirc.sh start
+ if [ -x /var/run/lirc/lircd.pid ]; then
+ /etc/init.d/lirc.sh start
+ fi
fi
More information about the Lunar-commits
mailing list