X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/088ae0f64db4a3e4889fc2e8d689637d6eb4e0f0..495ea3c8471821855f1fc06ef5f66ffa05fabe62:/package/base-files/Makefile?ds=sidebyside diff --git a/package/base-files/Makefile b/package/base-files/Makefile index 5ab776df5..4f8569ec2 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -53,7 +53,6 @@ define Package/base-files$(TARGET)/conffiles /etc/passwd /etc/profile /etc/shells -/etc/ipkg.conf /etc/sysctl.conf $(call $(TARGET)/conffiles) endef @@ -78,6 +77,7 @@ endef define Package/libssp $(call Package/gcc/Default) + DEPENDS:=@SSP_SUPPORT TITLE:=GCC support library endef @@ -146,8 +146,13 @@ define Package/base-files$(TARGET)/install $(CP) $(PLATFORM_SUBDIR)/base-files-$(PROFILE)/* $(1)/; \ fi \ ) +# 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 - $(SED) 's,$$$$S,$(BOARD),g' -e 's,$$$$A,$(ARCH),g' $(1)/etc/ipkg.conf mkdir -p $(1)/dev mkdir -p $(1)/etc/crontabs mkdir -p $(1)/jffs