00001 #!/bin/sh -e
00002
00003 # Copy this file to /etc/udev/scripts and add the contents mythtv-udev.rules
00004 # to your udev.rules in order to enable monitoring of hotpluggable disk
00005 # drives, such as USB keychains and USB connected cameras.
00006 # NOTE: You need udev version 0.71 or later for this functionality.
00007
00008 MYTH_FIFO=/tmp/mythtv_media
00009
00010 if [ -p $MYTH_FIFO ] && /bin/ps -C mythfrontend > /dev/null ; then
00011 echo $ACTION /sys$DEVPATH $DEVNAME > $MYTH_FIFO
00012 fi