[SOLVED] Execute rc.local at boot

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
amaro
Posts: 7
Joined: 20. May 2014, 04:47

[SOLVED] Execute rc.local at boot

Post 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!
Last edited by amaro on 20. May 2014, 09:09, edited 2 times in total.
User avatar
gapan
Salix Wizard
Posts: 6362
Joined: 6. Jun 2009, 17:40

Re: Execute rc.local at boot

Post 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.
Image
Image
amaro
Posts: 7
Joined: 20. May 2014, 04:47

Re: Execute rc.local at boot

Post by amaro »

Wrong permissions.
Working now.
Thanks!
Post Reply