summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Sanford <psanford@nearbuysystems.com>2013-09-03 17:22:54 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2013-09-03 22:16:50 (GMT)
commit2e20d072ae2ceef8d5b54022616c8f6bcd194e7f (patch)
treef65d89070c365309be77e2031d4c2253e2be5bec
parente2b3d5909d909970c85cbc339e17dbfe09cb3197 (diff)
downloadbuildroot-2e20d072ae2ceef8d5b54022616c8f6bcd194e7f.tar.gz
buildroot-2e20d072ae2ceef8d5b54022616c8f6bcd194e7f.tar.bz2
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 <psanford@nearbuysystems.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/netplug/netplug.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/package/netplug/netplug.mk b/package/netplug/netplug.mk
index fbc7a2d..fdb1937 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