postinst trigger: the new postinst trigger broke IB
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 42571
This commit is contained in:
@@ -59,6 +59,7 @@ endif
|
||||
|
||||
# where to build (and put) .ipk packages
|
||||
OPKG:= \
|
||||
IPKG_NO_SCRIPT=1 \
|
||||
IPKG_TMP=$(TMP_DIR)/ipkg \
|
||||
IPKG_INSTROOT=$(TARGET_DIR) \
|
||||
IPKG_CONF_DIR=$(STAGING_DIR)/etc \
|
||||
@@ -108,9 +109,8 @@ $(curdir)/install: $(TMP_DIR)/.build
|
||||
@mkdir -p $(TARGET_DIR)/etc/rc.d
|
||||
@( \
|
||||
cd $(TARGET_DIR); \
|
||||
for script in ./etc/init.d/*; do \
|
||||
grep '#!/bin/sh /etc/rc.common' $$script >/dev/null || continue; \
|
||||
IPKG_INSTROOT=$(TARGET_DIR) $$(which bash) ./etc/rc.common $$script enable; \
|
||||
for script in ./usr/lib/opkg/info/*.postinst; do \
|
||||
IPKG_INSTROOT=$(TARGET_DIR) $$(which bash) $$script; \
|
||||
done || true \
|
||||
)
|
||||
@-find $(TARGET_DIR) -name CVS | $(XARGS) rm -rf
|
||||
|
||||
Reference in New Issue
Block a user