Initial Commit

This commit is contained in:
2018-04-06 17:22:19 +02:00
commit cd65d33e3e
57 changed files with 22103 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/bin/bash
echo "$(date): Connect to Internet..."
ifup --force gprs
sleep 1
x=0
# Wait until connection is established
while ! ping -c 1 -W 1 8.8.8.8 &>/dev/null ; do
echo "$(date): wait for internet connection to come up"
sleep 1
if [ $x -gt 60 ]; then
# Time out here
echo "$(date): Could not connect to internet (timeout)..."
exit 1
fi
x=$((x+1))
done
echo "$(date): Connected to Internet...- IP: $(/home/pi/root-bin/get_internet_ip)"