Hi Chill,
Which lines of the lines, below should I now use the "#" before in order
to not have Squeezelite stop when dac is disconnected (or put in standby
in my case).
# compare $kernel device name to the one created by this script when the
DAC was inserted/powered up
startname=$(cat /tmp/$cardname.kername)
kername="$3"
if [ $kername == $startname ]; then # stop squeezelite if names
match
log "$cardname on $kername removed" $logfile
result=$(/usr/local/etc/init.d/squeezelite stop)
log "$result" $logfile
rm -f /tmp/$cardname.kername
log "/tmp/$cardname.kername deleted" $logfile
Cheers,
Rg
System information
------------------------
Main: RPI4B/PiCorePlayer/LMS> RPI4B/piCoreplayer/Squeezelite > USB>RME
ADI-2 DAC > Benchmark AHB2 > Revel Performa F208 speakers, 2X REL R-305
subs.
Home Theatre: RPI4 B/HifiBerry Dac+ Pro>Pioneer VSX 919 > Energy Take 5
Classic 5.1.
LMS 8.1.2 - 1612773843 on RPI4B with 1tb Samsung T5 SSD.
------------------------------------------------------------------------
rgro's Profile: http://forums.slimdevices.com/member.php?userid=34348
View this thread: http://forums.slimdevices.com/showthread.php?t=113661
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix