From be49772f0ed678855b1d81e4e5a333846ca03c4d Mon Sep 17 00:00:00 2001 From: fliegerjohn Date: Tue, 22 Aug 2023 20:40:14 +0200 Subject: [PATCH] Add LICENSE and improve coding style --- LICENSE | 14 ++++++++++++++ checkconnection.sh | 4 ++-- restartmodem.sh | 2 ++ 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..5a8e332 --- /dev/null +++ b/LICENSE @@ -0,0 +1,14 @@ + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2004 Sam Hocevar + + 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. + diff --git a/checkconnection.sh b/checkconnection.sh index 55beb04..b438361 100755 --- a/checkconnection.sh +++ b/checkconnection.sh @@ -9,8 +9,8 @@ testsite1="https://datenkastl.de/.connectivity-check" testsite2="http://captiveportal.kuketz.de" # Testdomains for ping -testdomain1=datenkastl.de -testdomain2=metager.de +testdomain1="datenkastl.de" +testdomain2="metager.de" #Path of curl and ping curlbin=`type -tp curl` diff --git a/restartmodem.sh b/restartmodem.sh index 7880010..e3048f9 100644 --- a/restartmodem.sh +++ b/restartmodem.sh @@ -15,9 +15,11 @@ interface="LTE" # # Restart Modem +echo "restart Modem..." ifdown $interface sleep 5 ifup $interface +echo "Modem restarted..." # Log the time echo "Interface $interface restarted at $(date)" >> /var/log/restartmodem.sh