Use reflector timer

Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
Severin Kaderli 2023-01-15 00:56:18 +01:00
parent 76579164a9
commit 5fb4aeeab7
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4
4 changed files with 19 additions and 32 deletions

View file

@ -11,7 +11,6 @@
declare -A CONFIG_ETC_FILES
CONFIG_ETC_FILES=(
["/etc/cron.daily/update-mirror"]="755"
["/etc/default/tlp"]="644"
["/etc/docker/daemon.json"]="644"
["/etc/gemrc"]="644"
@ -31,6 +30,7 @@ CONFIG_ETC_FILES=(
["/etc/sysctl.d/99-sysctl.conf"]="644"
["/etc/bluetooth/main.conf"]="644"
["/etc/modprobe.d/hid_apple.conf"]="644"
["/etc/xdg/reflector/reflector.conf"]="644"
)
output::section "Copying /etc files"

View file

@ -10,17 +10,18 @@
# Copies custom systemd services and enables needed services.
CONFIG_SYSTEMD_SERVICES=(
"acpid"
"bluetooth"
"cronie"
"docker"
"NetworkManager"
"org.cups.cupsd"
"acpid.service"
"bluetooth.service"
"cronie.service"
"docker.service"
"NetworkManager.service"
"org.cups.cupsd.service"
"pkgstats.timer"
"suspend"
"systemd-timesyncd"
"tlp"
"upower"
"reflector.timer"
"suspend.service"
"systemd-timesyncd.service"
"tlp.service"
"upower.service"
)
CONFIG_SYSTEMD_USER_SERVICES=()
@ -36,11 +37,11 @@ output::success "Successfully copied systemd services"
output::section "Enabling systemd services"
for service in "${CONFIG_SYSTEMD_SERVICES[@]}"; do
output::log "Enabling service ${YELLOW}${service}${DEFAULT}"
sudo systemctl enable "${service}" |& output::debug
sudo systemctl enable --now "${service}" |& output::debug
done
for service in "${CONFIG_SYSTEMD_USER_SERVICES[@]}"; do
output::log "Enabling service ${YELLOW}${service}${DEFAULT}"
systemctl --user enable "${service}" |& output::debug
done
output::success "Successfully enabled systemd services"
output::success "Successfully enabled systemd services"