#!/bin/bash
if ! curl http://192.168.43.11/RELAY=OFF | grep 'Relay is now: OFF' >/dev/null 2>&1
then
echo "M112 failed"
display ~/linuxcnc/nc_files/M111-failed.png
exit -1
fi
echo "M112 ok"
exit 0
