2018-12-13 21:59:36 +00:00
|
|
|
#!/bin/sh
|
|
|
|
uci -q batch <<-EOF >/dev/null
|
|
|
|
set system.@system[-1].ttylogin=1
|
2020-03-31 11:30:20 +00:00
|
|
|
set system.ntp.use_dhcp='0'
|
|
|
|
set system.ntp.enable_server='1'
|
2018-12-13 21:59:36 +00:00
|
|
|
commit system
|
2020-05-11 08:34:39 +00:00
|
|
|
set rpcd.@rpcd[0].timeout=120
|
2019-09-04 05:30:14 +00:00
|
|
|
commit rpcd
|
|
|
|
EOF
|
2020-07-10 13:39:40 +00:00
|
|
|
|
|
|
|
[ -n "$(ubus call system board | jsonfilter -e '@.board_name' | grep raspberry)" ] && [ "$(uci -q get openmptcprouter.settings.scaling_governor)" != "performance" ] && {
|
|
|
|
# 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_max_freq=$(cat /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq | tr -d "\n")
|
|
|
|
uci -q set openmptcprouter.settings.scaling_governor='performance'
|
|
|
|
}
|
|
|
|
|
2018-12-13 21:59:36 +00:00
|
|
|
exit 0
|