Diverse Modifikationen; Elimination von gammu-smsd

This commit is contained in:
2017-11-11 17:01:58 +01:00
parent 4610ba3792
commit 410972b8ce
13 changed files with 450 additions and 34 deletions
+14 -4
View File
@@ -1,8 +1,18 @@
#!/bin/bash
systemctl stop gammu-smsd
echo "$(date): Connect to Internet..."
#systemctl stop gammu-smsd
pon rnet
sleep 3
# Nameserver statisch eintragen...
echo "nameserver 8.8.8.8" >/etc/resolv.conf
sleep 20
# Wait until connection is established
if ping -c 1 8.8.8.8 &>/dev/null ; then
echo "Already Connected - $(date)"
else
echo "Not Connected - $( date )"
echo "connecting wait ..."
sleep 20
fi
# Wir wollen sicher sein, dass die Verbindung steht...
ping -c 1 -w 30 8.8.8.8 >/dev/null
sleep 3