rgro wrote: 
> 
> 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).
> 

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.


------------------------------------------------------------------------
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

Reply via email to