Skip to content

Commit

Permalink
Merge pull request #3550 from balena-os/acostach/os_power_fan_logging
Browse files Browse the repository at this point in the history
Don't log power mode and fan profile on unsupported devices, unless set in config.json
  • Loading branch information
flowzone-app[bot] authored Nov 13, 2024
2 parents a673596 + 7578815 commit db9bac3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,11 @@
set -e

. /usr/libexec/os-helpers-logging
source /usr/sbin/balena-config-vars --no-cache

info "Fan profile configuration is not supported for this device type."
if [[ -z "$OS_FAN_PROFILE" ]]; then
# No fan profile configured
:
else
info "Fan profile configuration is not supported for this device type."
fi
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,11 @@
set -e

. /usr/libexec/os-helpers-logging
source /usr/sbin/balena-config-vars --no-cache

info "Power mode configuration is not supported for this device type."
if [[ -z "$OS_POWER_MODE" ]]; then
# No power mode configured
:
else
info "Power mode configuration is not supported for this device type."
fi

0 comments on commit db9bac3

Please sign in to comment.