Skip to content

Commit

Permalink
match cd
Browse files Browse the repository at this point in the history
  • Loading branch information
volumio committed Oct 7, 2018
1 parent 00557cc commit 799336a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions volumio/etc/udisks-glue.conf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ filter other-partitions {
usage = filesystem
}

filter audio-disk {
optical = true
optical_disc_has_audio_tracks = true
}

match volumio-data {
automount = false
}
Expand Down Expand Up @@ -49,3 +54,8 @@ match other-partitions {
post_unmount_command = "/usr/bin/mpc update USB"
post_removal_command = "/usr/bin/mpc update USB"
}

match audio-disk {
post_insertion_command = "/bin/echo 1 > /tmp/cd && /usr/bin/curl http://localhost:3000/api/v1/pluginEndpoint?endpoint=detectCD"
post_removal_command = "/bin/echo 0 > /tmp/cd && /usr/bin/curl http://localhost:3000/api/v1/pluginEndpoint?endpoint=cdRemove"
}

0 comments on commit 799336a

Please sign in to comment.