install: split and harden hardware config scripts
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user