[packages/lirc] more %service

glen glen at pld-linux.org
Sat Feb 16 20:03:50 CET 2013


commit a77742c0947ab7da390ce090833c315b8905e0c9
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat Feb 16 20:59:51 2013 +0200

    more %service

 lirc.spec | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/lirc.spec b/lirc.spec
index f758603..ef4d13a 100644
--- a/lirc.spec
+++ b/lirc.spec
@@ -678,15 +678,9 @@ echo "kernel%{_alt_kernel}-smp-char-lirc-<your_driver> package."
 
 %preun
 if [ "$1" = "0" ]; then
-	if [ -f /var/lock/subsys/lircd ]; then
-		/etc/rc.d/init.d/lircd stop >&2
-	fi
+	%service lircd stop
+	%service lircmd stop
 	/sbin/chkconfig --del lircd
-fi
-if [ "$1" = "0" ]; then
-	if [ -f /var/lock/subsys/lircmd ]; then
-		/etc/rc.d/init.d/lircmd stop >&2
-	fi
 	/sbin/chkconfig --del lircmd
 fi
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lirc.git/commitdiff/703b35a04cd94cbe1efabc878a9d349b7770f7e1



More information about the pld-cvs-commit mailing list