install: split and harden hardware config scripts

This commit is contained in:
Ryan Hughes
2026-06-04 18:35:01 -04:00
parent 6056f8800c
commit d12d449b03
22 changed files with 95 additions and 117 deletions
+2 -1
View File
@@ -4,8 +4,9 @@
if omarchy-hw-intel; then
# Check if Sandy Bridge or newer (model >= 42). Sandy Bridge: model 42 (mobile), 45 (desktop)
cpu_model=$(grep -m1 "^model\s*:" /proc/cpuinfo 2>/dev/null | cut -d: -f2 | tr -d ' ')
cpu_model=${cpu_model:-0}
if ((cpu_model >= 42)) && omarchy-battery-present; then
omarchy-pkg-add thermald
sudo systemctl enable thermald
systemctl enable thermald.service
fi
fi