updated scripts: better warn messages, added/updated dotfiles
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
warn() { echo ">>> [configure-laptop] WARNING: $*" >&2; }
|
||||
|
||||
SYS="{{ .system | default "desktop" }}"
|
||||
DISTRO_ID="{{ .chezmoi.osRelease.id | default "" }}"
|
||||
|
||||
@@ -26,7 +28,7 @@ case "$DISTRO_ID" in
|
||||
sudo apt-get install -y tlp tlp-rdw power-profiles-daemon
|
||||
sudo systemctl enable tlp
|
||||
# tlp and power-profiles-daemon conflict on most hardware — mask the latter
|
||||
sudo systemctl mask power-profiles-daemon || true
|
||||
sudo systemctl mask power-profiles-daemon || warn "systemctl mask power-profiles-daemon failed (tlp conflict may cause issues)"
|
||||
;;
|
||||
|
||||
*)
|
||||
|
||||
Reference in New Issue
Block a user