Got it, thanks!

chill wrote: 
> It's probably best to comment out the whole 'stop' section, so that you
> don't get anything in the logfile either:
> > 
Code:
--------------------
  >   > 
#========================================================================================
  > # stop squeezelite when DAC is removed/powered down
  > 
#----------------------------------------------------------------------------------------
  >     stop ) 
  >             # 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
  > #           fi
  >             ;;
  > 
--------------------
> > 
> 
> A simpler alternative might be to delete the second 'rule' - the one
> with 'ACTION=="remove"' - in /etc/udev/rules.d/10-DAC51892395.rules. 
> You'd need to use sudo ('sudo vi
> /etc/udev/rules.d/10-DAC51892395.rules') because that file is owned by
> root.  And note that the file would be recreated with both lines any
> time you use the 'install' option of the script.  But it would mean
> that the script file can be left untouched.



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

Reply via email to