aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-11-30 15:18:02 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2014-12-01 22:51:09 +0100
commite8dc7677521e1ccd48ee76c90ea09b07bf99dbc4 (patch)
treeed738b19028a0243be5ea5e6608269e43b92e5d9
parenta47a96136b32adb0600ee0b96b0cbd5eb5f5504a (diff)
downloadbuildroot-e8dc7677521e1ccd48ee76c90ea09b07bf99dbc4.tar.gz
buildroot-e8dc7677521e1ccd48ee76c90ea09b07bf99dbc4.tar.bz2
input-event-daemon: use <pkg>_INSTALL_INIT_SYSV mechanism
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>
-rw-r--r--package/input-event-daemon/input-event-daemon.mk8
1 files changed, 5 insertions, 3 deletions
diff --git a/package/input-event-daemon/input-event-daemon.mk b/package/input-event-daemon/input-event-daemon.mk
index 534fe90a9f..0bafdc4e1a 100644
--- a/package/input-event-daemon/input-event-daemon.mk
+++ b/package/input-event-daemon/input-event-daemon.mk
@@ -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))