Skip to content

Commit

Permalink
aosc-os-presets-base: fix build script
Browse files Browse the repository at this point in the history
- Enable repo-refresh.timer for all ports.
- Install amd64-specific presets correctly.
  • Loading branch information
MingcongBai authored and eatradish committed Oct 24, 2023
1 parent 9a4f628 commit b3b6c50
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions runtime-data/aosc-os-presets-base/autobuild/build
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ 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.

# TLP services
enable tlp.service
enable tlp-sleep.service
enable thermald.service

# repo-refresh
enable repo-refresh.timer
EOF
fi

0 comments on commit b3b6c50

Please sign in to comment.