pentoo-overlay/pentoo/pentoo-system/files/00-speed_shutdown.stop

16 lines
477 B
Bash
Executable file

#!/bin/sh
if [ -e /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ]
then
for CPU in $(ls /sys/devices/system/cpu/|grep -E "cpu[0-9]+"); do
echo performance > /sys/devices/system/cpu/${CPU}/cpufreq/scaling_governor
done
fi
if [ -e /sys/class/scsi_host/host0/link_power_management_policy ]
then
for controller in $(ls /sys/class/scsi_host/|grep -E "host[0-9]+"); do
echo max_performance > /sys/class/scsi_host/${controller}/link_power_management_policy
done
fi