diff options
| author | Tranch <tranch.xiao@gmail.com> | 2026-08-21 08:20:53 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-21 08:20:53 +0800 |
| commit | ab070aec5f1d760a2539e14cb19da61593bded15 (patch) | |
| tree | 561fb1651cf6df1cd8df8178c92736ee68a51c3e /build_files/build.sh | |
| parent | 8040190faf592dcde8b3d7d4971df4e70a2cdc56 (diff) | |
| parent | e9fcf0c26fd06e942be00631bbf80cf2aaeadd67 (diff) | |
| download | AeroCore-OS-ab070aec5f1d760a2539e14cb19da61593bded15.tar.gz AeroCore-OS-ab070aec5f1d760a2539e14cb19da61593bded15.zip | |
Merge pull request #20 from AeroCore-IO/testingtesting-candidate-44.20260910.3testing-candidate-44.20260910.2testing-candidate-44.20260910.1testing-candidate-44.20260910testing-candidate-44.20260909testing-44.20260910testing-44.20260829testing-44.20260828testing-44.20260827
Bump docker/login-action to 4.6.0 and update release workflow
Diffstat (limited to 'build_files/build.sh')
| -rwxr-xr-x | build_files/build.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/build_files/build.sh b/build_files/build.sh index 03adff0..5618d20 100755 --- a/build_files/build.sh +++ b/build_files/build.sh @@ -14,6 +14,20 @@ esac # Copy the contents of system_files/ of the git repo to / cp -avf "/ctx/system_files"/. / +# Default HDMI-CEC to putting the TV into standby when the system sleeps. +# `ujust toggle-cec-sleep enable` changes this same setting at runtime. Keep +# the default in the base image's config so users do not need to run the +# command manually after a fresh install; the runtime command can still +# change it later. +CEC_CONFIG=/etc/default/cec-control +if [[ -f "${CEC_CONFIG}" ]]; then + if grep -q '^CEC_ONSLEEP_STANDBY=' "${CEC_CONFIG}"; then + sed -i 's/^CEC_ONSLEEP_STANDBY=.*/CEC_ONSLEEP_STANDBY=true/' "${CEC_CONFIG}" + else + printf '%s\n' 'CEC_ONSLEEP_STANDBY=true' >> "${CEC_CONFIG}" + fi +fi + mkdir -p /etc/environment.d if [[ -n "${FLATPAK_REMOTE_URL:-}" || -n "${HOMEBREW_BOTTLE_DOMAIN:-}" || -n "${HOMEBREW_API_DOMAIN:-}" ]]; then |
