[Lunar-commits] <moonbase> lirc: Fixing BUILD and POST_INSTALL

Jason Johnston jason at jjfam.net
Sat Nov 20 02:56:32 CET 2010


commit 4f26fc1e177457879ea1c79fd36db1a7b2ed4679
Author: Jason Johnston <jason at jjfam.net>
Date:   Fri Nov 19 19:56:32 2010 -0600

    lirc: Fixing BUILD and POST_INSTALL
    
    Adding install of example files into /usr/share/doc/lirc/ in BUILD.
    Adjusting logic to restart if pid file exists and start if it does not.
---
 utils/lirc/BUILD        |    3 +++
 utils/lirc/POST_INSTALL |    4 +++-
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/utils/lirc/BUILD b/utils/lirc/BUILD
index d8f09db..3328b72 100644
--- a/utils/lirc/BUILD
+++ b/utils/lirc/BUILD
@@ -20,6 +20,9 @@
                     --localstatedir=/var  \
                     $OPTS                &&
     default_make
+    cp contrib/lircmd.conf /usr/share/doc/lirc/
+    cp contrib/lircd.conf /usr/share/doc/lirc/
+    cp contrib/lircrc /usr/share/doc/lirc/
 
 ) > $C_FIFO 2>&1  && (
 
diff --git a/utils/lirc/POST_INSTALL b/utils/lirc/POST_INSTALL
index bccdd84..c744300 100644
--- a/utils/lirc/POST_INSTALL
+++ b/utils/lirc/POST_INSTALL
@@ -1,5 +1,7 @@
 if [ -x  /etc/init.d/lirc.sh ]; then
-  if [ -x /var/run/lirc/lircd.pid ]; then
+  if ! [ -x /var/run/lirc/lircd.pid ]; then
      /etc/init.d/lirc.sh start
+  else 
+     /etc/init.d/lirc.sh restart
   fi
 fi


More information about the Lunar-commits mailing list