fix(cec-control): compare variable rather than variable name

This commit is contained in:
James Snyder 2024-08-31 02:36:38 -05:00
parent b28fdd002b
commit fb3d4f8f35

View File

@ -13,7 +13,7 @@ CEC_ONSLEEP_STANDBY=${CEC_ONSLEEP_STANDBY:-false}
# Run specified actions
if [ "${ACTION}" = "onboot" ] && [ "$CEC_WAKE" = true ]; then
echo "on $CEC_TVID" | cec-client -s -d 1
if [ "CEC_SETSOURCE" = true ]; then
if [ "$CEC_SETSOURCE" = true ]; then
echo "as" | cec-client -s -d 1
fi
elif [ "${ACTION}" = "onpoweroff" ] && [ "$CEC_ONPOWEROFF_STANDBY" = true ]; then