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 <blogic@openwrt.org> SVN-Revision: 42470
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user