diff options
author | John Klug <john.klug@multitech.com> | 2017-07-03 11:12:42 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2017-07-03 11:12:42 -0500 |
commit | 6b8ed88c5b06e60b15901178485ce8a2b5cdf5ca (patch) | |
tree | 066e50b667cbbddd610a77e5c85aa3139069f61e /classes | |
parent | 2c333731f00c0b2434e3e37fcf62ab032c8aa078 (diff) | |
download | meta-mlinux-6b8ed88c5b06e60b15901178485ce8a2b5cdf5ca.tar.gz meta-mlinux-6b8ed88c5b06e60b15901178485ce8a2b5cdf5ca.tar.bz2 meta-mlinux-6b8ed88c5b06e60b15901178485ce8a2b5cdf5ca.zip |
Update ROOT_PASSWD* to MTADM_PASSWD*
Diffstat (limited to 'classes')
-rw-r--r-- | classes/mlinux-image.bbclass | 6 |
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;" |