aboutsummaryrefslogtreecommitdiff
path: root/package/mrp/mrp.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/mrp/mrp.mk')
-rw-r--r--package/mrp/mrp.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/package/mrp/mrp.mk b/package/mrp/mrp.mk
index 4d8a1fc92a..7e31e442ce 100644
--- a/package/mrp/mrp.mk
+++ b/package/mrp/mrp.mk
@@ -10,4 +10,14 @@ MRP_DEPENDENCIES = libev libmnl libnl
MRP_LICENSE = GPL-2.0
MRP_LICENSE_FILES = LICENSE
+define MRP_INSTALL_INIT_SYSV
+ $(INSTALL) -m 755 -D $(MRP_PKGDIR)/S65mrp \
+ $(TARGET_DIR)/etc/init.d/S65mrp
+endef
+
+define MRP_INSTALL_INIT_SYSTEMD
+ $(INSTALL) -D -m 644 $(MRP_PKGDIR)/mrp.service \
+ $(TARGET_DIR)/usr/lib/systemd/system/mrp.service
+endef
+
$(eval $(cmake-package))