X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/3c81b4d4cdda7caa9c0e9ecad4236d8c30c56844..85aaffee6587d6189e1eb011a54b5ca557590e46:/package/base-files/Makefile diff --git a/package/base-files/Makefile b/package/base-files/Makefile index 9f745aa17..4f8569ec2 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -146,7 +146,12 @@ 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) +# Form valid /etc/shadow entries, by copying the user:pw pairs +# from /etc/passwd, and adding on pw change data + $(if $(CONFIG_BUSYBOX_CONFIG_FEATURE_SHADOWPASSWDS), \ + cut -d ':' -f 1-2 $(1)/etc/passwd > $(1)/etc/shadow; \ + $(SED) 's/$$$$/:13848:0:99999:7:::/' $(1)/etc/shadow \ + ) $(SED) 's,$$$$R,$(REVISION),g' $(1)/etc/banner mkdir -p $(1)/dev mkdir -p $(1)/etc/crontabs