|
|
@ -6,7 +6,7 @@ FLOPPY="/media/floppy"
|
|
|
|
MAINPY="${FLOPPY}/main.py"
|
|
|
|
MAINPY="${FLOPPY}/main.py"
|
|
|
|
PYRUN="python ${MAINPY}"
|
|
|
|
PYRUN="python ${MAINPY}"
|
|
|
|
MAINPD="${FLOPPY}/main.pd"
|
|
|
|
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 _ _ _ _
|
|
|
|
stdbuf -oL -- udevadm monitor --udev -p ${FD} | while read -r -- STATE _ _ _ _
|
|
|
|
do
|
|
|
|
do
|
|
|
@ -39,7 +39,11 @@ do
|
|
|
|
echo "pd still running ... killing"
|
|
|
|
echo "pd still running ... killing"
|
|
|
|
pkill -9 pd
|
|
|
|
pkill -9 pd
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$(pgrep -f '^mpv')" ]
|
|
|
|
|
|
|
|
then
|
|
|
|
|
|
|
|
echo "mpv still running ... killing"
|
|
|
|
|
|
|
|
pkill -9 mpv
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
done
|
|
|
|