From 3caa9395b5c994b945767c8e528a2afdf24df35e 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42470 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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