From b3b6c50dded311fd55be7c80e67c30aca419d52e Mon Sep 17 00:00:00 2001 From: Mingcong Bai Date: Tue, 19 Sep 2023 10:50:42 -0700 Subject: [PATCH] aosc-os-presets-base: fix build script - Enable repo-refresh.timer for all ports. - Install amd64-specific presets correctly. --- runtime-data/aosc-os-presets-base/autobuild/build | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/runtime-data/aosc-os-presets-base/autobuild/build b/runtime-data/aosc-os-presets-base/autobuild/build index 53d41e91938..e6422753837 100644 --- a/runtime-data/aosc-os-presets-base/autobuild/build +++ b/runtime-data/aosc-os-presets-base/autobuild/build @@ -22,11 +22,14 @@ enable bluetooth.service enable ModemManager.service enable NetworkManager.service enable sshd.service + +# Automatic system update checker. +enable repo-refresh.timer EOF -if [[ "${CROSS:-$ARCH}" = "amd64" ]]; then +if ab_match_arch amd64; then abinfo "Writing 79-aosc-os-amd64-tlp.preset ..." - cat > 79-aosc-os-amd64-tlp.preset << EOF + cat > "$PKGDIR"/usr/lib/systemd/system-preset/79-aosc-os-amd64-tlp.preset << EOF ## 79-aosc-os-amd64-tlp.preset ## Systemd unit preset to enable TLP on AMD64. @@ -34,8 +37,5 @@ if [[ "${CROSS:-$ARCH}" = "amd64" ]]; then enable tlp.service enable tlp-sleep.service enable thermald.service - -# repo-refresh -enable repo-refresh.timer EOF fi