Check for bebop ip as environment variable

This commit is contained in:
Michael Schaeuble authored and Lorenz Meier committed 2016-06-20 12:55:01 +02:00
1 parent 847562f5d7
commit 0d9c031a2c
1 file changed
+7 -1
+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"