Add LICENSE and improve coding style

This commit is contained in:
Fliegerjohn 2023-08-22 20:40:14 +02:00
parent 22a6a545fa
commit be49772f0e
3 changed files with 18 additions and 2 deletions

14
LICENSE Normal file
View file

@ -0,0 +1,14 @@
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.

View file

@ -9,8 +9,8 @@ testsite1="https://datenkastl.de/.connectivity-check"
testsite2="http://captiveportal.kuketz.de" testsite2="http://captiveportal.kuketz.de"
# Testdomains for ping # Testdomains for ping
testdomain1=datenkastl.de testdomain1="datenkastl.de"
testdomain2=metager.de testdomain2="metager.de"
#Path of curl and ping #Path of curl and ping
curlbin=`type -tp curl` curlbin=`type -tp curl`

View file

@ -15,9 +15,11 @@ interface="LTE"
# #
# Restart Modem # Restart Modem
echo "restart Modem..."
ifdown $interface ifdown $interface
sleep 5 sleep 5
ifup $interface ifup $interface
echo "Modem restarted..."
# Log the time # Log the time
echo "Interface $interface restarted at $(date)" >> /var/log/restartmodem.sh echo "Interface $interface restarted at $(date)" >> /var/log/restartmodem.sh