Check for bebop ip as environment variable

This commit is contained in:
Michael Schaeuble
2016-06-15 20:02:55 +02:00
committed by Lorenz Meier
parent 847562f5d7
commit 0d9c031a2c
+7 -1
View File
@@ -1,6 +1,12 @@
#!/bin/bash
ip=192.168.42.1
if [ -z ${BEBOP_IP+x} ]; then
ip=192.168.42.1
echo "\$BEBOP_IP is not set (use default: $ip)"
else
ip=$BEBOP_IP
echo "\$BEBOP_IP is set to $ip"
fi
port=9050
echo "Connecting to bebop: $ip:$port"