Merge pull request #1585 from jsnyder/correct-comparison-in-cec-control

fix(cec-control): compare variable rather than variable name
This commit is contained in:
HikariKnight 2024-08-31 22:26:33 +02:00 committed by GitHub
commit e8c2913a0e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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