mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix ACL and set performance scaling governor for RPI
This commit is contained in:
parent
09226a29a7
commit
c4e6778a94
3 changed files with 12 additions and 2 deletions
|
@ -42,6 +42,7 @@ start_service() {
|
||||||
# force CPU speed for RPI
|
# force CPU speed for RPI
|
||||||
uci -q set openmptcprouter.settings.scaling_min_freq=$(cat /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq | tr -d "\n")
|
uci -q set openmptcprouter.settings.scaling_min_freq=$(cat /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq | tr -d "\n")
|
||||||
uci -q set openmptcprouter.settings.scaling_max_freq=$(cat /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq | tr -d "\n")
|
uci -q set openmptcprouter.settings.scaling_max_freq=$(cat /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq | tr -d "\n")
|
||||||
|
uci -q set openmptcprouter.settings.scaling_governor='performance'
|
||||||
}
|
}
|
||||||
|
|
||||||
config_load openmptcprouter
|
config_load openmptcprouter
|
||||||
|
|
|
@ -101,4 +101,10 @@ if [ "$(uci -q get openmptcprouter.settings.enable_nodelay)" = "" ]; then
|
||||||
commit openmptcprouter
|
commit openmptcprouter
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
if [ "$(uci -q get openmptcprouter.settings.scaling_governor)" = "" ]; then
|
||||||
|
uci -q batch <<-EOF >/dev/null
|
||||||
|
set openmptcprouter.settings.scaling_governor='performance'
|
||||||
|
commit openmptcprouter
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
@ -2,10 +2,13 @@
|
||||||
"luci-app-openmptcprouter": {
|
"luci-app-openmptcprouter": {
|
||||||
"description": "Grant UCI access for luci-app-openmptcprouter",
|
"description": "Grant UCI access for luci-app-openmptcprouter",
|
||||||
"read": {
|
"read": {
|
||||||
"uci": [ "'*" ]
|
"uci": [ "*" ],
|
||||||
|
"ubus": {
|
||||||
|
"openmptcprouter": [ "*" ]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"write": {
|
"write": {
|
||||||
"uci": [ "'*" ]
|
"uci": [ "*" ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue