From 15f5d5dcaabc4f45d9a61fd13d798f96bde3c66b Mon Sep 17 00:00:00 2001 From: hcg Date: Mon, 4 May 2009 12:39:21 +0000 Subject: [PATCH] base-files: Add additional base-files search paths git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15583 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/base-files/Makefile b/package/base-files/Makefile index 5578c90da..c47a0f8ba 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -148,12 +148,18 @@ define Package/base-files$(TARGET)/install if [ -d $(PLATFORM_DIR)/base-files-$(PROFILE)/. ]; then \ $(CP) $(PLATFORM_DIR)/base-files-$(PROFILE)/* $(1)/; \ fi + if [ -d $(PLATFORM_DIR)/$(PROFILE)/base-files/. ]; then \ + $(CP) $(PLATFORM_DIR)/$(PROFILE)/base-files/* $(1)/; \ + fi $(if $(filter-out $(PLATFORM_DIR),$(PLATFORM_SUBDIR)), \ if [ -d $(PLATFORM_SUBDIR)/base-files/. ]; then \ $(CP) $(PLATFORM_SUBDIR)/base-files/* $(1)/; \ fi; \ if [ -d $(PLATFORM_SUBDIR)/base-files-$(PROFILE)/. ]; then \ $(CP) $(PLATFORM_SUBDIR)/base-files-$(PROFILE)/* $(1)/; \ + fi; \ + if [ -d $(PLATFORM_SUBDIR)/$(PROFILE)/base-files/. ]; then \ + $(CP) $(PLATFORM_SUBDIR)/$(PROFILE)/base-files/* $(1)/; \ fi \ ) # Form valid /etc/shadow entries, by copying the user:pw pairs