summaryrefslogtreecommitdiff
path: root/classes/mlinux-image.bbclass
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2017-07-03 11:12:42 -0500
committerJohn Klug <john.klug@multitech.com>2017-07-03 11:12:42 -0500
commit6b8ed88c5b06e60b15901178485ce8a2b5cdf5ca (patch)
tree066e50b667cbbddd610a77e5c85aa3139069f61e /classes/mlinux-image.bbclass
parent2c333731f00c0b2434e3e37fcf62ab032c8aa078 (diff)
downloadmeta-mlinux-atmel-6b8ed88c5b06e60b15901178485ce8a2b5cdf5ca.tar.gz
meta-mlinux-atmel-6b8ed88c5b06e60b15901178485ce8a2b5cdf5ca.tar.bz2
meta-mlinux-atmel-6b8ed88c5b06e60b15901178485ce8a2b5cdf5ca.zip
Update ROOT_PASSWD* to MTADM_PASSWD*
Diffstat (limited to 'classes/mlinux-image.bbclass')
-rw-r--r--classes/mlinux-image.bbclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/classes/mlinux-image.bbclass b/classes/mlinux-image.bbclass
index 580901d..6d8ff60 100644
--- a/classes/mlinux-image.bbclass
+++ b/classes/mlinux-image.bbclass
@@ -2,14 +2,14 @@
# having file mod times of zero confuses cron
IMAGE_CMD_jffs2 = "mkfs.jffs2 --root=${IMAGE_ROOTFS} --output=${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.jffs2 ${EXTRA_IMAGECMD}"
-# set specified mtadm password in image using ROOT_PASSWORD_HASH
+# set specified mtadm password in image using MTADM_PASSWORD_HASH
mlinux_set_root_password () {
echo IMAGE_ROOTFS is ${IMAGE_ROOTFS} >/tmp/m_set_root_pwd.txt
ls ${IMAGE_ROOTFS} >/tmp/ls_pwd.txt
if [ -e ${IMAGE_ROOTFS}/etc/shadow ]; then
- sed -i 's%^mtadm:[^:]*:%mtadm:${ROOT_PASSWORD_HASH}:%' ${IMAGE_ROOTFS}/etc/shadow
+ sed -i 's%^mtadm:[^:]*:%mtadm:${MTADM_PASSWORD_HASH}:%' ${IMAGE_ROOTFS}/etc/shadow
elif [ -e ${IMAGE_ROOTFS}/etc/passwd ]; then
- sed -i 's%^mtadm:[^:]*:%mtadm:${ROOT_PASSWORD_HASH}:%' ${IMAGE_ROOTFS}/etc/passwd
+ sed -i 's%^mtadm:[^:]*:%mtadm:${MTADM_PASSWORD_HASH}:%' ${IMAGE_ROOTFS}/etc/passwd
fi
}
ROOTFS_POSTPROCESS_COMMAND += "mlinux_set_root_password;"