diff --git a/usr/local/sbin/thewhispererindarkness.sh b/usr/local/sbin/thewhispererindarkness.sh index 5df17ee..5910693 100755 --- a/usr/local/sbin/thewhispererindarkness.sh +++ b/usr/local/sbin/thewhispererindarkness.sh @@ -6,7 +6,7 @@ FLOPPY="/media/floppy" MAINPY="${FLOPPY}/main.py" PYRUN="python ${MAINPY}" MAINPD="${FLOPPY}/main.pd" -PDRUN="pd -lib import -path /usr/local/lib/pd-externals/net/ -path /usr/local/lib/pd-externals/osc/ -lib osc -lib udpreceive -oss -r 48000 -rt -nogui ${MAINPD}" +PDRUN="pd -lib import -path /usr/local/lib/pd-externals/net/ -path /usr/local/lib/pd-externals/osc/ -path /usr/lib/pd/extra/cyclone -lib osc -lib udpreceive -oss -r 48000 -rt -nogui ${MAINPD}" stdbuf -oL -- udevadm monitor --udev -p ${FD} | while read -r -- STATE _ _ _ _ do @@ -35,11 +35,15 @@ do pkill -9 python fi if [ "$(pgrep -f '^pd')" ] - then - echo "pd still running ... killing" - pkill -9 pd - fi - + then + echo "pd still running ... killing" + pkill -9 pd + fi + if [ "$(pgrep -f '^mpv')" ] + then + echo "mpv still running ... killing" + pkill -9 mpv + fi fi fi done