transformadores-backend/comprobar_modo.sh

10 lines
193 B
Bash
Raw Normal View History

2024-11-23 16:52:21 +00:00
#!/bin/bash
if ls /dev/ttyACM* 1>/dev/null 2>&1; then
echo "USB detectado"
python3 /ruta/a/berry_usb.py
else
echo "USB no detectado, mandando al server"
python3 /ruta/a/berry_server.py
fi