Here's my adjusted script. The stop part is in there as far I can see.
I've (hopefully) just changed the 2 local bits near the beginning, and
the sudo line just now.

33671

Starting from a fresh reboot, dac on, working sqlite etc, then dac off,
and dac back on. 
M6 Log

Code:
--------------------
    [      18.48] Script parameters: find M6 
  [      18.55] Searching for M6 with idVendor=0d8c and idProduct=0004 in dmesg
  [      18.59] M6 detected on  1-1.2
  [      18.61] Restoring alsa settings for M6
  [      67.33] Script parameters: stop M6 1-1.2:1.1
  [      67.33] Script parameters: stop M6 1-1.2:1.0
  [      67.47] Script parameters: stop M6 1-1.2:1.2
  [      67.49] Script parameters: stop M6 1-1.2
  [      67.50] M6 on 1-1.2 removed
  [      67.53] Stopping Squeezelite player: Squeezelite...
  [      67.55] /tmp/M6.kername deleted
  [      90.64] Script parameters: restart M6 1-1.2
  [      90.65] M6 detected on 1-1.2
  [      91.72] Restarting Squeezelite player...
  Squeezelite is not running.
  Starting Squeezelite player: Squeezelite...
  [      92.76] Squeezelite not running.
  [      93.82] Restarting Squeezelite player...
  Squeezelite is not running.
  Starting Squeezelite player: Squeezelite...
  [      94.86] Squeezelite not running.
  [      95.92] Restarting Squeezelite player...
  Squeezelite is not running.
  Starting Squeezelite player: Squeezelite...
  [      96.96] Squeezelite not running.
  [      98.02] Restarting Squeezelite player...
  Squeezelite is not running.
  Starting Squeezelite player: Squeezelite...
  [      99.06] Squeezelite not running.
  [     100.12] Restarting Squeezelite player...
  Squeezelite is not running.
  Starting Squeezelite player: Squeezelite...
  [     101.16] Squeezelite not running.
  [     101.17] Squeezelite failed to initialize within 5 attempts.
--------------------


/etc/udev/rules.d/10-M6.rules

Code:
--------------------
    SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0d8c", 
ATTR{idProduct}=="0004", RUN+="/home/tc/SQLITE-control.sh restart M6 $kernel"
  SUBSYSTEM=="usb", ACTION=="remove", RUN+="/home/tc/SQLITE-control.sh stop M6 
$kernel"
  
--------------------


+-------------------------------------------------------------------+
|Filename: SQLITE-control (2).zip                                   |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=33671|
+-------------------------------------------------------------------+

------------------------------------------------------------------------
Bogg's Profile: http://forums.slimdevices.com/member.php?userid=50888
View this thread: http://forums.slimdevices.com/showthread.php?t=113661

_______________________________________________
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to