aboutsummaryrefslogtreecommitdiff
path: root/package/ofono/ofono.mk
diff options
context:
space:
mode:
authorGravatar Jerônimo Lopes <lopesjeronimo@gmail.com>2014-04-28 12:34:52 -0300
committerGravatar Peter Korsgaard <peter@korsgaard.com>2014-04-28 21:48:53 +0200
commitb1bfc2d2e51ae49c6f9a5cbbc2a0f87bf863f024 (patch)
treea49911f18f28f34761e8082c3eb6947b47938140 /package/ofono/ofono.mk
parent9e4b0e62e16f7d667eba51f9b23e0b1496b90866 (diff)
downloadbuildroot-b1bfc2d2e51ae49c6f9a5cbbc2a0f87bf863f024.tar.gz
buildroot-b1bfc2d2e51ae49c6f9a5cbbc2a0f87bf863f024.tar.bz2
ofono: add init script
Signed-off-by: Jerônimo Lopes <lopesjeronimo@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/ofono/ofono.mk')
-rw-r--r--package/ofono/ofono.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/ofono/ofono.mk b/package/ofono/ofono.mk
index 3f3144716a..07b354dcad 100644
--- a/package/ofono/ofono.mk
+++ b/package/ofono/ofono.mk
@@ -22,6 +22,10 @@ OFONO_CONF_OPT = --disable-test
# make sure that it is defined.
OFONO_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE"
+define OFONO_INSTALL_INIT_SYSV
+ $(INSTALL) -m 0755 -D package/ofono/S46ofono $(TARGET_DIR)/etc/init.d/S46ofono
+endef
+
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
OFONO_CONF_OPT += --enable-udev
OFONO_DEPENDENCIES += udev