'4 wrote:
> 4;1008753']I checked all the paths and files. The only missing file was
> .filetool.lst.
> Running 'make DAC' works as expected without the .filetool.lst section.
> And a reboot doesn't remove or change the created rules file.
> DietPi has a custom boot script, so that's where you'll need to add a
> line to run the 'find' option:
> /var/lib/dietpi/dietpi-autostart/custom.sh
>
> I do however encounter another problem. When I run the 'find' option it
> throws an error:
>
> >
Code:
--------------------
> > sudo: /usr/local/sbin/alsactl: command not found
--------------------
> >
>
> It must be this command that causes the error:
>
> >
Code:
--------------------
> > sudo /usr/local/sbin/alsactl restore
--------------------
> >
>
> Running the restore option from Putty seems to work just fine. I must
> confess that I didn't ran the script at boot, but I wanted to test it
> first so I ran it from Putty.
> Any suggestions on what might be causing this error?
That command (in two places) is there because the Alsa output
configuration can't be loaded until the output device comes online. Do
you know if DietPi also uses Alsa? It might just be that the alsactl
binary is in a different place in your case. You can search for it on
your system with:
Code:
--------------------
cd /
sudo find -iname alsactl
--------------------
Or you could type
Code:
--------------------
which alsactl
--------------------
If it finds it, then you could change the script to point to that
specific binary, or you could just remove the path in the script, so
that the line would become 'sudo alsactl restore'. Remember it's there
in two places in the script.
(I'm not sure here: if 'which alsactl' finds it, then it probably won't
need 'sudo' in front of 'alsactl restore'. If 'which alsactl' doesn't
find it, then try 'sudo which alsactl' (in case 'which' only finds
things that the the current user has permission to - that's what I'm not
sure about). If 'sudo which alsactl' then finds something that 'which
alsactl' didn't, then you'll need to leave sudo in front of the command
in the script.)
Failing all that, just comment out the two lines in the script, so that
your sound configuration runs with defaults.
------------------------------------------------------------------------
chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=113661
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix