input-event-daemon: use <pkg>_INSTALL_INIT_SYSV mechanism
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 30 Nov 2014 14:18:02 +0000 (15:18 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 1 Dec 2014 21:51:09 +0000 (22:51 +0100)
Also makes the installation of the init script unconditional.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/input-event-daemon/input-event-daemon.mk

index 534fe90a9fc1387a28f0d151a16761d8663ccf79..0bafdc4e1a7b0db2cd457589f7aacd0407a78cd8 100644 (file)
@@ -21,9 +21,11 @@ define INPUT_EVENT_DAEMON_INSTALL_TARGET_CMDS
        [ -f $(TARGET_DIR)/etc/input-event-daemon.conf ] || \
                $(INSTALL) -m 644 -D $(@D)/docs/sample.conf \
                        $(TARGET_DIR)/etc/input-event-daemon.conf
-       [ -f $(TARGET_DIR)/etc/init.d/S99input-event-daemon ] || \
-               $(INSTALL) -m 0755 -D package/input-event-daemon/S99input-event-daemon \
-                       $(TARGET_DIR)/etc/init.d/S99input-event-daemon
+endef
+
+define INPUT_EVENT_DAEMON_INSTALL_INIT_SYSV
+       $(INSTALL) -m 0755 -D package/input-event-daemon/S99input-event-daemon \
+               $(TARGET_DIR)/etc/init.d/S99input-event-daemon
 endef
 
 $(eval $(generic-package))