Add tct/prepare/hdmi_force.sh
Author of this script: Andrzej Hajda <a.hajda@samsung.com>
Any change to this file may break this hack.
Add install_hdmi_force to tct/prepare/prepare.sh
Change-Id: Ie08f234c2dc8c5f1973d64e933e10e371dbcadc6
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
mount_image "${IMAGE_UNPACKED}/rootfs.img" "${IMAGE_MOUNTPOINT}"
install_iserial "${SDMUX}" "${IMAGE_MOUNTPOINT}"
+install_hdmi_force "${IMAGE_MOUNTPOINT}"
unmount_image "${IMAGE_MOUNTPOINT}"
echo "### flash ###"
"${IMAGE_MOUNTPOINT}/etc/systemd/system/multi-user.target.wants/iserial.service"
}
+install_hdmi_force() {
+ test -n "${TESTLAB_SCRIPTS}" || die "Missing env: testlab_scripts!"
+ IMAGE_MOUNTPOINT="$1"
+ test -n "${IMAGE_MOUNTPOINT}" || die "Missing argument: image_mountpoint!"
+ sudo cp "${TESTLAB_SCRIPTS}/prepare/hdmi_force.sh" "${IMAGE_MOUNTPOINT}/usr/sbin/"
+ sudo sed -i 's|^ExecStart|ExecStartPre=/usr/sbin/hdmi_force.sh\nExecStart|' \
+ "${IMAGE_MOUNTPOINT}/usr/lib/systemd/system/display-manager.service"
+}
+
unpack_image() {
test $# -ge 2 || die "Too few arguments!"
eval DESTINATION=\$$#