Init.d script
Posted: 10 Jul 2016 19:07
Hi Martin, I don't want to abuse of your good will but you may be able to help me if you can, and it is fine if not.
From automagic i can use "execute root to command" execute scripts. It works perfectly.
One of the scripts I use is to change the CPU frequency and governor as well as the number of online cores. It simply works, no issue with your app.
The scrip is quite long and I use ";" in between each line.
Im now trying to embed this script into a init.d file with no success.
As a test I have created a small file, inside syste/etc/init.d with a single line like this
echo 4 > /sys/bus/cpu/devices/cpu0/core_ctl/min_cpus
Do you now if I'm missing other lines at the top? I'm totally clueless on how to achieve his, but pretty sure it is possible to run this at boot.
Best regards
LED
From automagic i can use "execute root to command" execute scripts. It works perfectly.
One of the scripts I use is to change the CPU frequency and governor as well as the number of online cores. It simply works, no issue with your app.
The scrip is quite long and I use ";" in between each line.
Im now trying to embed this script into a init.d file with no success.
As a test I have created a small file, inside syste/etc/init.d with a single line like this
echo 4 > /sys/bus/cpu/devices/cpu0/core_ctl/min_cpus
Do you now if I'm missing other lines at the top? I'm totally clueless on how to achieve his, but pretty sure it is possible to run this at boot.
Best regards
LED