From 3e7128271b8b532b00a3c84b31858fac0b507e04 Mon Sep 17 00:00:00 2001 From: blogic Date: Wed, 30 Jul 2008 17:09:01 +0000 Subject: [PATCH] creates a passwd's shadow file if busybox supports the feature, fixes #2887 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12017 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/package/base-files/Makefile b/package/base-files/Makefile index f4ef55d11..231647e98 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -147,6 +147,7 @@ define Package/base-files$(TARGET)/install $(CP) $(PLATFORM_SUBDIR)/base-files-$(PROFILE)/* $(1)/; \ fi \ ) + $(if $(CONFIG_BUSYBOX_CONFIG_FEATURE_SHADOWPASSWDS),cp $(1)/etc/passwd $(1)/etc/shadow) $(SED) 's,$$$$R,$(REVISION),g' $(1)/etc/banner $(SED) 's,$$$$S,$(BOARD),g' -e 's,$$$$A,$(ARCH),g' $(1)/etc/ipkg.conf mkdir -p $(1)/dev