From 438dfe5c6fbfa63f5841fda9b4ec44b2f7712674 Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Sat, 29 Sep 2007 14:27:54 +0000 Subject: [PATCH] get rid of per-profile base-files SVN-Revision: 9069 --- package/base-files/Makefile | 17 ++++++----------- .../base-files/{default => }/etc/diag.sh | 0 .../base-files/{default => }/lib/adm5120.sh | 0 .../base-files/{default => }/sbin/wget2nand | 0 .../base-files/{default => }/etc/config/network | 0 .../amcc/base-files/{default => }/etc/inittab | 0 .../base-files/{default => }/etc/config/network | 0 .../ar7/base-files/{default => }/etc/diag.sh | 0 .../base-files/{default => }/etc/init.d/adam2 | 0 .../at91/base-files/{default => }/etc/inittab | 0 .../at91/base-files/{default => }/etc/ipkg.conf | 0 .../base-files/{default => }/etc/preinit.arch | 0 .../au1000/base-files/{default => }/etc/diag.sh | 0 .../base-files/{default => }/etc/diag.sh | 0 .../{default => }/etc/init.d/netconfig | 0 .../base-files/{default => }/etc/preinit.arch | 0 .../{default => }/lib/upgrade/platform.sh | 0 .../{default => }/sbin/hotplug.failsafe | 0 .../base-files/{default => }/etc/config/network | 0 .../base-files/{default => }/etc/ipkg.conf | 0 .../etrax/base-files/{default => }/etc/passwd | 0 .../base-files/{default => }/etc/config/network | 0 .../base-files/{default => }/etc/config/network | 0 .../base-files/{default => }/etc/config/network | 0 .../rb532/base-files/{default => }/etc/diag.sh | 0 .../rb532/base-files/{default => }/sbin/cf2nand | 0 .../base-files/{default => }/sbin/wget2nand | 0 .../rdc/base-files/{default => }/etc/diag.sh | 0 .../rdc/base-files/{default => }/etc/inittab | 0 .../base-files/{default => }/etc/config/network | 0 .../sibyte/base-files/{default => }/etc/inittab | 0 .../base-files/{default => }/etc/preinit.arch | 0 .../{default => }/lib/upgrade/platform.sh | 0 33 files changed, 6 insertions(+), 11 deletions(-) rename target/linux/adm5120/base-files/{default => }/etc/diag.sh (100%) rename target/linux/adm5120/base-files/{default => }/lib/adm5120.sh (100%) rename target/linux/adm5120/router_le/base-files/{default => }/sbin/wget2nand (100%) rename target/linux/amazon/base-files/{default => }/etc/config/network (100%) rename target/linux/amcc/base-files/{default => }/etc/inittab (100%) rename target/linux/ar7/base-files/{default => }/etc/config/network (100%) rename target/linux/ar7/base-files/{default => }/etc/diag.sh (100%) rename target/linux/ar7/base-files/{default => }/etc/init.d/adam2 (100%) rename target/linux/at91/base-files/{default => }/etc/inittab (100%) rename target/linux/at91/base-files/{default => }/etc/ipkg.conf (100%) rename target/linux/atheros/base-files/{default => }/etc/preinit.arch (100%) rename target/linux/au1000/base-files/{default => }/etc/diag.sh (100%) rename target/linux/brcm-2.4/base-files/{default => }/etc/diag.sh (100%) rename target/linux/brcm-2.4/base-files/{default => }/etc/init.d/netconfig (100%) rename target/linux/brcm-2.4/base-files/{default => }/etc/preinit.arch (100%) rename target/linux/brcm-2.4/base-files/{default => }/lib/upgrade/platform.sh (100%) rename target/linux/brcm-2.4/base-files/{default => }/sbin/hotplug.failsafe (100%) rename target/linux/etrax/base-files/{default => }/etc/config/network (100%) rename target/linux/etrax/base-files/{default => }/etc/ipkg.conf (100%) rename target/linux/etrax/base-files/{default => }/etc/passwd (100%) rename target/linux/iop32x/base-files/{default => }/etc/config/network (100%) rename target/linux/ixp4xx/base-files/{default => }/etc/config/network (100%) rename target/linux/rb532/base-files/{default => }/etc/config/network (100%) rename target/linux/rb532/base-files/{default => }/etc/diag.sh (100%) rename target/linux/rb532/base-files/{default => }/sbin/cf2nand (100%) rename target/linux/rb532/base-files/{default => }/sbin/wget2nand (100%) rename target/linux/rdc/base-files/{default => }/etc/diag.sh (100%) rename target/linux/rdc/base-files/{default => }/etc/inittab (100%) rename target/linux/sibyte/base-files/{default => }/etc/config/network (100%) rename target/linux/sibyte/base-files/{default => }/etc/inittab (100%) rename target/linux/x86/base-files/{default => }/etc/preinit.arch (100%) rename target/linux/x86/base-files/{default => }/lib/upgrade/platform.sh (100%) diff --git a/package/base-files/Makefile b/package/base-files/Makefile index d81ec4f1c4..f5bf1adce7 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -1,5 +1,5 @@ -# -# Copyright (C) 2006 OpenWrt.org +# +# Copyright (C) 2007 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -130,19 +130,14 @@ define Package/base-files$(TARGET)/install if [ -d $(GENERIC_PLATFORM_DIR)/base-files/. ]; then \ $(CP) $(GENERIC_PLATFORM_DIR)/base-files/* $(1)/; \ fi - if [ -d $(PLATFORM_DIR)/base-files/default/. ]; then \ - $(CP) $(PLATFORM_DIR)/base-files/default/* $(1)/; \ + if [ -d $(PLATFORM_DIR)/base-files/. ]; then \ + $(CP) $(PLATFORM_DIR)/base-files/* $(1)/; \ fi $(if $(filter-out $(PLATFORM_DIR),$(PLATFORM_SUBDIR)), \ - if [ -d $(PLATFORM_SUBDIR)/base-files/default/. ]; then \ - $(CP) $(PLATFORM_SUBDIR)/base-files/default/* $(1)/; \ + if [ -d $(PLATFORM_SUBDIR)/base-files/. ]; then \ + $(CP) $(PLATFORM_SUBDIR)/base-files/* $(1)/; \ fi \ ) - if [ "$(PROFILE)" != "Default" ]; then \ - if [ -d $(PLATFORM_DIR)/base-files/profile-$(PROFILE)/. ]; then \ - $(CP) $(PLATFORM_DIR)/base-files/profile-$(PROFILE)/* $(1)/; \ - fi; \ - fi $(SED) 's,$$$$R,r$(REV),g' $(1)/etc/banner $(SED) 's,$$$$S,$(BOARD)-$(KERNEL),g' -e 's,$$$$A,$(ARCH),g' $(1)/etc/ipkg.conf mkdir -p $(1)/dev diff --git a/target/linux/adm5120/base-files/default/etc/diag.sh b/target/linux/adm5120/base-files/etc/diag.sh similarity index 100% rename from target/linux/adm5120/base-files/default/etc/diag.sh rename to target/linux/adm5120/base-files/etc/diag.sh diff --git a/target/linux/adm5120/base-files/default/lib/adm5120.sh b/target/linux/adm5120/base-files/lib/adm5120.sh similarity index 100% rename from target/linux/adm5120/base-files/default/lib/adm5120.sh rename to target/linux/adm5120/base-files/lib/adm5120.sh diff --git a/target/linux/adm5120/router_le/base-files/default/sbin/wget2nand b/target/linux/adm5120/router_le/base-files/sbin/wget2nand similarity index 100% rename from target/linux/adm5120/router_le/base-files/default/sbin/wget2nand rename to target/linux/adm5120/router_le/base-files/sbin/wget2nand diff --git a/target/linux/amazon/base-files/default/etc/config/network b/target/linux/amazon/base-files/etc/config/network similarity index 100% rename from target/linux/amazon/base-files/default/etc/config/network rename to target/linux/amazon/base-files/etc/config/network diff --git a/target/linux/amcc/base-files/default/etc/inittab b/target/linux/amcc/base-files/etc/inittab similarity index 100% rename from target/linux/amcc/base-files/default/etc/inittab rename to target/linux/amcc/base-files/etc/inittab diff --git a/target/linux/ar7/base-files/default/etc/config/network b/target/linux/ar7/base-files/etc/config/network similarity index 100% rename from target/linux/ar7/base-files/default/etc/config/network rename to target/linux/ar7/base-files/etc/config/network diff --git a/target/linux/ar7/base-files/default/etc/diag.sh b/target/linux/ar7/base-files/etc/diag.sh similarity index 100% rename from target/linux/ar7/base-files/default/etc/diag.sh rename to target/linux/ar7/base-files/etc/diag.sh diff --git a/target/linux/ar7/base-files/default/etc/init.d/adam2 b/target/linux/ar7/base-files/etc/init.d/adam2 similarity index 100% rename from target/linux/ar7/base-files/default/etc/init.d/adam2 rename to target/linux/ar7/base-files/etc/init.d/adam2 diff --git a/target/linux/at91/base-files/default/etc/inittab b/target/linux/at91/base-files/etc/inittab similarity index 100% rename from target/linux/at91/base-files/default/etc/inittab rename to target/linux/at91/base-files/etc/inittab diff --git a/target/linux/at91/base-files/default/etc/ipkg.conf b/target/linux/at91/base-files/etc/ipkg.conf similarity index 100% rename from target/linux/at91/base-files/default/etc/ipkg.conf rename to target/linux/at91/base-files/etc/ipkg.conf diff --git a/target/linux/atheros/base-files/default/etc/preinit.arch b/target/linux/atheros/base-files/etc/preinit.arch similarity index 100% rename from target/linux/atheros/base-files/default/etc/preinit.arch rename to target/linux/atheros/base-files/etc/preinit.arch diff --git a/target/linux/au1000/base-files/default/etc/diag.sh b/target/linux/au1000/base-files/etc/diag.sh similarity index 100% rename from target/linux/au1000/base-files/default/etc/diag.sh rename to target/linux/au1000/base-files/etc/diag.sh diff --git a/target/linux/brcm-2.4/base-files/default/etc/diag.sh b/target/linux/brcm-2.4/base-files/etc/diag.sh similarity index 100% rename from target/linux/brcm-2.4/base-files/default/etc/diag.sh rename to target/linux/brcm-2.4/base-files/etc/diag.sh diff --git a/target/linux/brcm-2.4/base-files/default/etc/init.d/netconfig b/target/linux/brcm-2.4/base-files/etc/init.d/netconfig similarity index 100% rename from target/linux/brcm-2.4/base-files/default/etc/init.d/netconfig rename to target/linux/brcm-2.4/base-files/etc/init.d/netconfig diff --git a/target/linux/brcm-2.4/base-files/default/etc/preinit.arch b/target/linux/brcm-2.4/base-files/etc/preinit.arch similarity index 100% rename from target/linux/brcm-2.4/base-files/default/etc/preinit.arch rename to target/linux/brcm-2.4/base-files/etc/preinit.arch diff --git a/target/linux/brcm-2.4/base-files/default/lib/upgrade/platform.sh b/target/linux/brcm-2.4/base-files/lib/upgrade/platform.sh similarity index 100% rename from target/linux/brcm-2.4/base-files/default/lib/upgrade/platform.sh rename to target/linux/brcm-2.4/base-files/lib/upgrade/platform.sh diff --git a/target/linux/brcm-2.4/base-files/default/sbin/hotplug.failsafe b/target/linux/brcm-2.4/base-files/sbin/hotplug.failsafe similarity index 100% rename from target/linux/brcm-2.4/base-files/default/sbin/hotplug.failsafe rename to target/linux/brcm-2.4/base-files/sbin/hotplug.failsafe diff --git a/target/linux/etrax/base-files/default/etc/config/network b/target/linux/etrax/base-files/etc/config/network similarity index 100% rename from target/linux/etrax/base-files/default/etc/config/network rename to target/linux/etrax/base-files/etc/config/network diff --git a/target/linux/etrax/base-files/default/etc/ipkg.conf b/target/linux/etrax/base-files/etc/ipkg.conf similarity index 100% rename from target/linux/etrax/base-files/default/etc/ipkg.conf rename to target/linux/etrax/base-files/etc/ipkg.conf diff --git a/target/linux/etrax/base-files/default/etc/passwd b/target/linux/etrax/base-files/etc/passwd similarity index 100% rename from target/linux/etrax/base-files/default/etc/passwd rename to target/linux/etrax/base-files/etc/passwd diff --git a/target/linux/iop32x/base-files/default/etc/config/network b/target/linux/iop32x/base-files/etc/config/network similarity index 100% rename from target/linux/iop32x/base-files/default/etc/config/network rename to target/linux/iop32x/base-files/etc/config/network diff --git a/target/linux/ixp4xx/base-files/default/etc/config/network b/target/linux/ixp4xx/base-files/etc/config/network similarity index 100% rename from target/linux/ixp4xx/base-files/default/etc/config/network rename to target/linux/ixp4xx/base-files/etc/config/network diff --git a/target/linux/rb532/base-files/default/etc/config/network b/target/linux/rb532/base-files/etc/config/network similarity index 100% rename from target/linux/rb532/base-files/default/etc/config/network rename to target/linux/rb532/base-files/etc/config/network diff --git a/target/linux/rb532/base-files/default/etc/diag.sh b/target/linux/rb532/base-files/etc/diag.sh similarity index 100% rename from target/linux/rb532/base-files/default/etc/diag.sh rename to target/linux/rb532/base-files/etc/diag.sh diff --git a/target/linux/rb532/base-files/default/sbin/cf2nand b/target/linux/rb532/base-files/sbin/cf2nand similarity index 100% rename from target/linux/rb532/base-files/default/sbin/cf2nand rename to target/linux/rb532/base-files/sbin/cf2nand diff --git a/target/linux/rb532/base-files/default/sbin/wget2nand b/target/linux/rb532/base-files/sbin/wget2nand similarity index 100% rename from target/linux/rb532/base-files/default/sbin/wget2nand rename to target/linux/rb532/base-files/sbin/wget2nand diff --git a/target/linux/rdc/base-files/default/etc/diag.sh b/target/linux/rdc/base-files/etc/diag.sh similarity index 100% rename from target/linux/rdc/base-files/default/etc/diag.sh rename to target/linux/rdc/base-files/etc/diag.sh diff --git a/target/linux/rdc/base-files/default/etc/inittab b/target/linux/rdc/base-files/etc/inittab similarity index 100% rename from target/linux/rdc/base-files/default/etc/inittab rename to target/linux/rdc/base-files/etc/inittab diff --git a/target/linux/sibyte/base-files/default/etc/config/network b/target/linux/sibyte/base-files/etc/config/network similarity index 100% rename from target/linux/sibyte/base-files/default/etc/config/network rename to target/linux/sibyte/base-files/etc/config/network diff --git a/target/linux/sibyte/base-files/default/etc/inittab b/target/linux/sibyte/base-files/etc/inittab similarity index 100% rename from target/linux/sibyte/base-files/default/etc/inittab rename to target/linux/sibyte/base-files/etc/inittab diff --git a/target/linux/x86/base-files/default/etc/preinit.arch b/target/linux/x86/base-files/etc/preinit.arch similarity index 100% rename from target/linux/x86/base-files/default/etc/preinit.arch rename to target/linux/x86/base-files/etc/preinit.arch diff --git a/target/linux/x86/base-files/default/lib/upgrade/platform.sh b/target/linux/x86/base-files/lib/upgrade/platform.sh similarity index 100% rename from target/linux/x86/base-files/default/lib/upgrade/platform.sh rename to target/linux/x86/base-files/lib/upgrade/platform.sh