From 2e20d072ae2ceef8d5b54022616c8f6bcd194e7f Mon Sep 17 00:00:00 2001 From: Peter Sanford Date: Tue, 3 Sep 2013 10:22:54 -0700 Subject: [PATCH] netplug: properly install init.d script. Looks like this was lost in 20d4792e. [Peter: use _INSTALL_INIT_SYSV, explicitly delete script on uninstall] Signed-off-by: Peter Sanford Signed-off-by: Peter Korsgaard --- package/netplug/netplug.mk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/package/netplug/netplug.mk b/package/netplug/netplug.mk index fbc7a2d982..fdb1937b3a 100644 --- a/package/netplug/netplug.mk +++ b/package/netplug/netplug.mk @@ -16,10 +16,15 @@ define NETPLUG_INSTALL_TARGET_CMDS $(MAKE) DESTDIR=$(TARGET_DIR) -C $(@D) install endef +define NETPLUG_INSTALL_INIT_SYSV + $(INSTALL) -m 0755 -D package/netplug/S29netplug \ + $(TARGET_DIR)/etc/init.d/S29netplug +endef + define NETPLUG_UNINSTALL_TARGET_CMDS rm -f $(TARGET_DIR)/sbin/netplugd rm -rf $(TARGET_DIR)/etc/netplug* - rm -f $(TARGET_DIR)/etc/init.d/S*netplug + rm -f $(TARGET_DIR)/etc/init.d/S29netplug endef define NETPLUG_CLEAN_CMDS -- 2.30.2