beielipi/root-bin/connect_to_internet

7 lines
145 B
Bash
Executable File

#!/bin/bash
systemctl stop gammu-smsd
pon rnet
sleep 3
# Wir wollen sicher sein, dass die Verbindung steht...
ping -c 1 -w 30 8.8.8.8 >/dev/null