diff --git a/scripts/chroot.sh b/scripts/chroot.sh
index 9a49e04cfcb21fa604c69312080ce1af1dad862f..0a358873dc409b9b2356e79e0ce8e8266c5656fa 100755
--- a/scripts/chroot.sh
+++ b/scripts/chroot.sh
@@ -814,6 +814,16 @@ if [ -n "${chroot_hook}" -a -r "${DIR}/${chroot_hook}" ] ; then
 	chroot_hook=""
 fi
 
+#add /boot/uEnv.txt update script
+if [ -d ${tempdir}/etc/kernel/postinst.d/ ] ; then
+	sudo cp -v ${DIR}/target/other/zz-uenv_txt ${tempdir}/etc/kernel/postinst.d/
+	echo "debug:"
+	ls -lh ${tempdir}/etc/kernel/postinst.d/
+	echo "debug: should be"
+	echo "#-rwxr-xr-x 1 root root 858 Sep  2  2012 initramfs-tools"
+	echo "#-rwxr-xr-x 1 root root 453 Jul 16 15:56 zz-uenv_txt"
+fi
+
 if [ -f ${tempdir}/usr/bin/qemu-arm-static ] ; then
 	sudo rm -f ${tempdir}/usr/bin/qemu-arm-static || true
 fi