mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix OpenMPTCProuter advanced settings
This commit is contained in:
parent
42ace5fe26
commit
b9fa5733c5
5 changed files with 24 additions and 9 deletions
|
@ -9,15 +9,21 @@ start_service() {
|
|||
config_load openmptcprouter
|
||||
config_get scaling_min_freq settings scaling_min_freq
|
||||
[ -n "$scaling_min_freq" ] && {
|
||||
echo $scaling_min_freq > /sys/devices/system/cpu/cpufreq/policy*/scaling_min_freq
|
||||
for c in $(ls -d /sys/devices/system/cpu/cpufreq/policy[0-9]*); do
|
||||
echo $scaling_min_freq > $c/scaling_min_freq
|
||||
done
|
||||
}
|
||||
config_get scaling_max_freq settings scaling_max_freq
|
||||
[ -n "$scaling_max_freq" ] && {
|
||||
echo $scaling_max_freq > /sys/devices/system/cpu/cpufreq/policy*/scaling_max_freq
|
||||
for c in $(ls -d /sys/devices/system/cpu/cpufreq/policy[0-9]*); do
|
||||
echo $scaling_max_freq > $c/scaling_max_freq
|
||||
done
|
||||
}
|
||||
config_get scaling_governor settings scaling_governor
|
||||
[ -n "$scaling_governor" ] && {
|
||||
echo $scaling_governor > /sys/devices/system/cpu/cpufreq/policy*/scaling_governor
|
||||
for c in $(ls -d /sys/devices/system/cpu/cpufreq/policy[0-9]*); do
|
||||
echo $scaling_governor > $c/scaling_governor
|
||||
done
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue