aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xarchsetup7
1 files changed, 6 insertions, 1 deletions
diff --git a/archsetup b/archsetup
index 0349113..92a1e4a 100755
--- a/archsetup
+++ b/archsetup
@@ -1393,11 +1393,16 @@ enable_maint_timers() {
# units under ~/.config/systemd/user/. systemctl --user can't run during
# install (no user session bus), so create the enablement symlinks
# directly — same idiom as the syncthing user service.
+ #
+ # maint-epp-restore.service rides the same idiom but hangs off
+ # default.target: it replays the remembered CPU mode once at login,
+ # because the kernel resets EPP to the driver default on every boot.
action="enabling maint scan timers" && display "task" "$action"
local unit_dir="/home/$username/.config/systemd/user"
- (mkdir -p "$unit_dir/timers.target.wants" && \
+ (mkdir -p "$unit_dir/timers.target.wants" "$unit_dir/default.target.wants" && \
ln -sf "$unit_dir/maint-scan.timer" "$unit_dir/timers.target.wants/maint-scan.timer" && \
ln -sf "$unit_dir/maint-net-scan.timer" "$unit_dir/timers.target.wants/maint-net-scan.timer" && \
+ ln -sf "$unit_dir/maint-epp-restore.service" "$unit_dir/default.target.wants/maint-epp-restore.service" && \
chown -R "$username:$username" "/home/$username/.config/systemd") \
>> "$logfile" 2>&1 || error_warn "$action" "$?"