dony71
1 November 2018 20:42
1
Hi Sam,
I think rc.local on my raspberry not being executed.
I check the file is executable
-rwxr-xr-x 1 root root 354 Nov 1 13:29 rc.local
I notice I don’t find any rc.local on /etc/init.d
Can you explain where rc.local being called during boot?
Hi,
I’ve moved your post to new topic, as we try to avoid posting to wiki entries.
rc.local is now run as systemd service, please provide the output of:
systemctl status rc.local
&
ls -lah /etc/rc.local
also
cat /etc/rc.local
Thanks Tom.
dony71
1 November 2018 21:57
3
Tom,
I think I’m wrong … rc.local is being executed
I have “/usr/sbin/alsactl -f /etc/asound.state restore” in rc.local, but somehow alsa volume level is not adjusted.
This is the issue which I posted on the link below
I have change alsa setting by doing
sudo alsactl store
and I can see kernel generate /var/lib/alsa/asound.state
The next time I reboot, all alsa setting is being restored except volume setting
I also try to execute in rc.local below but still doesn’t help
/usr/sbin/alsactl -f /etc/asound.state restore
Am I missing something? Please help