base-files: Add /etc/nsswitch.conf to targets running glibc/eglibc, otherwise name...
authorHamish Guthrie <hcg@openwrt.org>
Fri, 18 Feb 2011 10:37:26 +0000 (10:37 +0000)
committerHamish Guthrie <hcg@openwrt.org>
Fri, 18 Feb 2011 10:37:26 +0000 (10:37 +0000)
SVN-Revision: 25568

package/base-files/Makefile
package/base-files/glibc-files/etc/nsswitch.conf [new file with mode: 0644]

index 3ccd2c7f4b76e6352e616236f9959f6cef14dac4..4abbdf7ac45adaee1e52035902e95fb21aac20aa 100644 (file)
@@ -416,6 +416,7 @@ ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),)
   use_nsswitch=$(if $(CONFIG_USE_GLIBC)$(CONFIG_EGLIBC_OPTION_EGLIBC_NSSWITCH),libnss_dns libnss_files)
 
   define Package/glibc/install
+       $(CP) ./glibc-files/* $(1)/
        $(INSTALL_DIR) $(1)/lib
        $(CP) \
                $(TOOLCHAIN_DIR)/lib/ld*.so.* \
diff --git a/package/base-files/glibc-files/etc/nsswitch.conf b/package/base-files/glibc-files/etc/nsswitch.conf
new file mode 100644 (file)
index 0000000..981c425
--- /dev/null
@@ -0,0 +1,13 @@
+passwd:files
+shadow:files
+group:files
+hosts:dns files
+bootparams:files
+ethers:files
+netmasks:files
+networks:files
+protocols:files
+rpc:files
+services:files
+automount:files
+aliases:files