mirror of
https://github.com/edu4rdshl/linuxscripts.git
synced 2026-07-17 23:24:52 +00:00
8 lines
332 B
Bash
Executable file
8 lines
332 B
Bash
Executable file
#!/usr/bin/env sh
|
|
if [ "$1" == "start" ]; then
|
|
for fgovernor in /sys/devices/system/cpu/cpufreq/policy*/scaling_governor; do echo performance > "${fgovernor}"; done
|
|
exit
|
|
elif [ "$1" == "stop" ]; then
|
|
for fgovernor in /sys/devices/system/cpu/cpufreq/policy*/scaling_governor; do echo powersave > "${fgovernor}"; done
|
|
exit
|
|
fi
|