|
|
|
@ -4,8 +4,9 @@
|
|
|
|
|
FD="/dev/sda"
|
|
|
|
|
FLOPPY="/media/floppy"
|
|
|
|
|
MAINPY="${FLOPPY}/main.py"
|
|
|
|
|
MAINPYRUN="python ${MAINPY}"
|
|
|
|
|
PYRUN="python ${MAINPY}"
|
|
|
|
|
MAINPD="${FLOPPY}/main.pd"
|
|
|
|
|
PDRUN="pd -jack -rt -r 48000 -nogui ${MAINPD}"
|
|
|
|
|
|
|
|
|
|
stdbuf -oL -- udevadm monitor --udev -p ${FD} | while read -r -- STATE _ _ _ _
|
|
|
|
|
do
|
|
|
|
@ -19,12 +20,12 @@ do
|
|
|
|
|
if [ -e "${MAINPY}" ]
|
|
|
|
|
then
|
|
|
|
|
echo "main.py found"
|
|
|
|
|
$(${MAINPYRUN})&
|
|
|
|
|
$(${PYRUN})&
|
|
|
|
|
fi
|
|
|
|
|
if [ -e "${MAINPD}" ]
|
|
|
|
|
then
|
|
|
|
|
echo "main.pd found"
|
|
|
|
|
$(pd -rt -nogui ${MAINPD})&
|
|
|
|
|
$(${PDRUN})&
|
|
|
|
|
fi
|
|
|
|
|
else
|
|
|
|
|
echo "floppy out (no fs detected)"
|
|
|
|
|