summaryrefslogtreecommitdiffstats
path: root/package/netplug/netplug.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/netplug/netplug.mk')
-rw-r--r--package/netplug/netplug.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/netplug/netplug.mk b/package/netplug/netplug.mk
index 0bd7c788ae..aeebcad2ee 100644
--- a/package/netplug/netplug.mk
+++ b/package/netplug/netplug.mk
@@ -23,4 +23,12 @@ define NETPLUG_INSTALL_INIT_SYSV
$(TARGET_DIR)/etc/init.d/S29netplug
endef
+define NETPLUG_INSTALL_INIT_SYSTEMD
+ $(INSTALL) -D -m 644 package/netplug/netplug.service \
+ $(TARGET_DIR)/usr/lib/systemd/system/netplug.service
+ mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
+ ln -sf ../../../../usr/lib/systemd/system/netplug.service \
+ $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/netplug.service
+endef
+
$(eval $(generic-package))
OpenPOWER on IntegriCloud