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