OpenVoiceOS/buildroot-external/board/raspberrypi/rootfs-overlay/usr/sbin/screencheck

11 lines
125 B
Plaintext
Raw Normal View History

#!/bin/bash
status="$(sudo tvservice -n 2>&1)"
if [ "$status" == "[E] No device present" ];
then
exit 1
else
exit 0
fi