From ffe3357f8898a56139cf180c401906ccc3a0a51a Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 29 Sep 2006 20:46:20 +0000 Subject: [PATCH] run extra scripts after package installation before image creation in the image builder (if present), better fix for #386 SVN-Revision: 4879 --- openwrt/target/linux/imagebuilder/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openwrt/target/linux/imagebuilder/Makefile b/openwrt/target/linux/imagebuilder/Makefile index 12bd6cbbbb..16d2b1452e 100644 --- a/openwrt/target/linux/imagebuilder/Makefile +++ b/openwrt/target/linux/imagebuilder/Makefile @@ -45,5 +45,11 @@ build: if [ -d ./files.$(LIST) ]; then \ cp -a --remove-destination ./files.$(LIST)/* $(LINUX_BUILD_DIR)/root; \ fi + if [ -e ./scripts/all.sh ]; then \ + sh ./scripts/all.sh; \ + fi + if [ -e ./scripts/$(LIST).sh ]; then \ + sh ./scripts/$(LIST).sh; \ + fi find $(LINUX_BUILD_DIR)/root -name '.svn' || 'CVS' | xargs rm -rf $(MAKE) -S -C image KERNEL="$(KERNEL)" BOARD="$(BOARD)" BIN_DIR="$(BIN_DIR)/$(LIST)" install -- 2.30.2