summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-02-06 01:57:43 -0600
committerWaldemar Brodkorb <wbx@openadk.org>2015-02-06 01:57:43 -0600
commit28b1ec7d57938c07bbf37b56c0bff76fc7a47381 (patch)
tree21d3d12c9a54640751ffeb6e037c8104806e550b /package
parent319ac4b072b54f347a3518289b55f81e3090a250 (diff)
use a hash in the config
This avoids breakage when using a # in the password. And no sensitive data is saved in clear on the target. Suggested by a Achim Marikar.
Diffstat (limited to 'package')
-rw-r--r--package/base-files/Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index 827007550..9fd7903a6 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -6,7 +6,7 @@ include $(ADK_TOPDIR)/mk/rootfs.mk
PKG_NAME:= base-files
PKG_VERSION:= 1.1
-PKG_RELEASE:= 10
+PKG_RELEASE:= 11
PKG_SECTION:= base/apps
PKG_DESCR:= basic files and scripts
@@ -96,8 +96,7 @@ endif
echo "ff02::2 ip6-allrouters" >> $(IDIR_BASE_FILES)/etc/hosts
echo "ff02::3 ip6-allhosts" >> $(IDIR_BASE_FILES)/etc/hosts
test -z '$(ADK_RUNTIME_PASSWORD)' || \
- $(SED) 's,\*NP\*,'"$$($(STAGING_HOST_DIR)/usr/bin/mkcrypt \
- $$(awk -F\= '/^ADK_RUNTIME_PASSWORD/ { print $$2 }' $(ADK_TOPDIR)/.config|sed -e 's^\"^^g')),g" \
+ $(SED) 's,\*NP\*,'"$$(awk -F\= '/^ADK_RUNTIME_PASSWORD/ { print $$2 }' $(ADK_TOPDIR)/.config|sed -e 's^\"^^g')),g" \
$(IDIR_BASE_FILES)/etc/shadow
echo $(ADK_RUNTIME_TMPFS_SIZE) > $(IDIR_BASE_FILES)/etc/tmpfs
ifeq ($(ADK_TARGET_WITH_ROOT_RW),y)