Compare commits

...

3 Commits

Author SHA1 Message Date
Infinite State
daed8a57e8
Merge 08737151af into 51e2cbd607 2024-11-07 20:42:15 +01:00
Adam Perkowski
08737151af
remove an unneccessary comment
Co-authored-by: nyx <nnyyxxxx@protonmail.com>
2024-10-27 01:24:07 +02:00
Infinite
406f2ad91a Add refined check 2024-10-26 15:18:08 -07:00

View File

@ -48,7 +48,7 @@ configureAutoCpufreq() {
if command_exists auto-cpufreq; then
# Check if the system has a battery to determine if it's a laptop
if [ -d /sys/class/power_supply/BAT0 ]; then
if ls /sys/class/power_supply/BAT* >/dev/null 2>&1; then
printf "%b\n" "${GREEN}System detected as laptop. Updating auto-cpufreq for laptop...${RC}"
"$ESCALATION_TOOL" auto-cpufreq --force powersave
else