From d6dbc22bbcde78bbc378ca3f006771a2b074ff2e Mon Sep 17 00:00:00 2001 From: John Crispin Date: Thu, 11 Sep 2014 12:27:49 +0000 Subject: ipkg: add a default postinst/prerm script the postinst script enables/starts the init.d scripts upon package installation and installs the users required by the package. the prerm script stops and disables the init.d scripts. Signed-off-by: John Crispin SVN-Revision: 42470 --- package/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'package/Makefile') diff --git a/package/Makefile b/package/Makefile index 0cba878576..a42b4b0dd0 100644 --- a/package/Makefile +++ b/package/Makefile @@ -116,7 +116,8 @@ $(curdir)/install: $(TMP_DIR)/.build @-find $(TARGET_DIR) -name CVS | $(XARGS) rm -rf @-find $(TARGET_DIR) -name .svn | $(XARGS) rm -rf @-find $(TARGET_DIR) -name '.#*' | $(XARGS) rm -f - rm -f $(TARGET_DIR)/usr/lib/opkg/info/*.postinst + rm -f $(TARGET_DIR)/usr/lib/opkg/info/*.postinst* + rm -f $(TARGET_DIR)/usr/lib/opkg/info/*.prerm* $(if $(CONFIG_CLEAN_IPKG),rm -rf $(TARGET_DIR)/usr/lib/opkg) $(call mklibs) -- cgit v1.2.3