mirror of
https://github.com/Fishwaldo/build.git
synced 2025-04-02 20:21:30 +00:00
Little performance fix for InstallOpenMediaVault example
This commit is contained in:
parent
f0f5e0c3c3
commit
fdfe89f61c
1 changed files with 9 additions and 0 deletions
|
@ -103,6 +103,15 @@ InstallOpenMediaVault() {
|
|||
\tmv /etc/default/cpufrequtils.bak /etc/default/cpufrequtils' /etc/init.d/firstrun
|
||||
sed -i '/systemctl\ disable\ firstrun/a \
|
||||
\tsync && sleep 30 && reboot' /etc/init.d/firstrun
|
||||
|
||||
# check for necessary performance tuning
|
||||
grep -q ondemand /etc/default/cpufrequtils && sed -i '/^exit\ 0/i \
|
||||
echo ondemand >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor \
|
||||
sleep 0.1 \
|
||||
echo 1 >/sys/devices/system/cpu/cpufreq/ondemand/io_is_busy \
|
||||
echo 25 >/sys/devices/system/cpu/cpufreq/ondemand/up_threshold \
|
||||
echo 10 >/sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor' /etc/rc.local
|
||||
} # InstallOpenMediaVault
|
||||
|
||||
Main "$@"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue