10 lines
193 B
Bash
10 lines
193 B
Bash
#!/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
|