mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-13 19:11:51 +00:00
27 lines
718 B
Text
27 lines
718 B
Text
|
#!/bin/sh /etc/rc.common
|
||
|
|
||
|
START=5
|
||
|
|
||
|
USE_PROCD=1
|
||
|
|
||
|
start_service() {
|
||
|
local scaling_min_freq scaling_max_freq
|
||
|
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
|
||
|
}
|
||
|
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
|
||
|
}
|
||
|
config_get scaling_governor settings scaling_governor
|
||
|
[ -n "$scaling_governor" ] && {
|
||
|
echo $scaling_governor > /sys/devices/system/cpu/cpufreq/policy*/scaling_governor
|
||
|
}
|
||
|
}
|
||
|
|
||
|
reload_service() {
|
||
|
rc_procd start_service
|
||
|
return 0
|
||
|
}
|