rgro wrote:
> More questions with regard to the newest script version:
>
> 1. Does this most recent script update/change allow removal of the User
> Command in Tweaks?
>
> 2. Do I still need to put a # in front of both these lines, or just one
> of them?
>
> echo "$stopname removed" >> /var/log/pcp_DAC.log
>
> sudo /usr/local/etc/init.d/squeezelite stop >> /var/log/pcp_DAC.log
>
> The reason I ask is that with the User Command removed and the '#' in
> front of just the one line, 'sudo /usr/local/etc/init.d/squeezelite stop
> >> /var/log/pcp_DAC.log', with the newest script when I reboot with the
> DAC in standby and then turn it on, it won't auto-start Squeezelite as
> it did with the previous version of the script.
>
> Reverting back to the older script, with the User Command implemented,
> and the # in front of both lines, it works perfectly to start
> Squeezelite upon dac power-up.
The latest version of the script did not change the functionality
compared to the one before (maybe I need to start using version numbers,
because I can see that there may be some confusion already). The only
changes were to make 'install' fail a bit more gracefully if the DAC
wasn't present, and to make sure that the user types 'sudo' in front of
the 'install' and 'uninstall' options.
So if you had the previous version working (the one you installed after
manually removing the old rules file and removing the User Command from
the Tweaks page), then I really don't see that simply replacing the
script with this version can have caused this.
If you have disabled the 'stop' function with the '#' character (one or
both lines is up to you: in front of the 'sudo' line prevents the stop
command working, in front of the 'echo' line also prevents it from
reporting in the log file, so both is better), and the 'start' function
isn't working, then the script is now doing nothing! So it's possible a
typo has been introduced into your version of the script causing it to
fail to run. So let's do a few checks:
1) Do you have a file called10-DAC51892395.rules in /etc/udev/rules.d?
2) Is it the only file beginning with '10-' in that location?
3) Is that file listed at the end of /opt/filetool.lst?
4) Do you see the following lines towards the top of /opt/bootlocal.sh?
Code:
--------------------
echo "Starting SQLITE-control.sh from /opt/bootlocal.sh..." | tee -a
/var/log/pcp_boot.log
/home/tc/SQLITE-control.sh find DAC51892395 &
--------------------
5) What happens when you type
Code:
--------------------
'sudo SQLITE-control.sh install'
--------------------
You should see something like the output below (with 'DAC51892395'
instead of 'DAC'). After running that command, does the DAC behaviour
change?
Code:
--------------------
tc@pCPLounge:~$ sudo ./SQLITE-control.sh install
1) Squeezelite output device found in /usr/local/etc/pcp/pcp.cfg = DAC
2) DAC found on card1
3) DAC idVendor = 08bb and idProduct = 2704
4) udev rules written to /etc/udev/rules.d/10-DAC.rules
5) etc/udev/rules.d/10-DAC.rules added to /opt/.filetool.lst
6) SQLITE-control.sh added to /opt/bootlocal.sh
Installation complete
Squeezelite is now set up to autostart/stop with DAC power
Backup and reboot ('pcp br') to enable
--------------------
------------------------------------------------------------------------
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