main.py exec and kill

master
root 7 years ago
parent 800bc9473c
commit 4c07482ef5

@ -18,6 +18,7 @@ do
if [ -e "${MAINPY}" ]
then
echo "main.py found"
$(python ${MAINPY})&
fi
if [ -e "${MAINPD}" ]
then
@ -25,6 +26,11 @@ do
fi
else
echo "floppy out (no fs detected)"
if [ "$(pgrep python)" ]
then
echo "python still running ... killing"
pkill -9 python
fi
fi
fi
done

Loading…
Cancel
Save