Page 1 of 1

[SOLVED] Execute rc.local at boot

Posted: 20. May 2014, 05:44
by amaro
Hi guys!

Just installed Salix and cannot make my rc.local entries permanent - on reboot have to do them manually
Example
echo '1200000' > '/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq'
echo '1200000' > '/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq'

Thanks!

Re: Execute rc.local at boot

Posted: 20. May 2014, 06:31
by gapan
rc.local is always executed at boot. Your problem is most probably that something else that is executed after rc.local is changing those back.

Try something like

Code: Select all

sleep 60 && echo '1200000' > '/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq' &
sleep 60 && echo '1200000' > '/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq' &
so the change happens 1 min after rc.local is run.

Re: Execute rc.local at boot

Posted: 20. May 2014, 08:56
by amaro
Wrong permissions.
Working now.
Thanks!