From f5553905377dd33ba99b62fc6b1cdce25b59e81b Mon Sep 17 00:00:00 2001 From: DIY89 Date: Sat, 30 Oct 2021 16:32:25 +0200 Subject: [PATCH 1/2] Update cron_fritzbox-reboot.sh --- cron_fritzbox-reboot.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cron_fritzbox-reboot.sh b/cron_fritzbox-reboot.sh index 79f74a7..14cbc89 100644 --- a/cron_fritzbox-reboot.sh +++ b/cron_fritzbox-reboot.sh @@ -25,9 +25,11 @@ IPS="192.168.137.1 FRITZUSER="" FRITZPW="passwort-weboberflaeche" +logfile=logfile.log +date=`date +"%d.%m.%Y %H:%M:%S"` ###====### -# Skript # +# Script # ###====### location="/upnp/control/deviceconfig" @@ -35,5 +37,6 @@ uri="urn:dslforum-org:service:DeviceConfig:1" action='Reboot' for IP in ${IPS}; do - curl -k -m 5 --anyauth -u "$FRITZUSER:$FRITZPW" http://$IP:49000$location -H 'Content-Type: text/xml; charset="utf-8"' -H "SoapAction:$uri#$action" -d "" -s > /dev/null + echo $date " - Restarting FritzBox - " $IP >> $logfile + curl -k -m 5 --anyauth -u "$FRITZUSER:$FRITZPW" http://$IP:49000$location -H 'Content-Type: text/xml; charset="utf-8"' -H "SoapAction:$uri#$action" -d "" -s >> $logfile done From 108805c76fd9b10f9d5d42ba4f69a1f44c6eace0 Mon Sep 17 00:00:00 2001 From: DIY89 Date: Sun, 31 Oct 2021 11:38:58 +0100 Subject: [PATCH 2/2] Update cron_fritzbox-reboot.sh --- cron_fritzbox-reboot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cron_fritzbox-reboot.sh b/cron_fritzbox-reboot.sh index 14cbc89..8833b0d 100644 --- a/cron_fritzbox-reboot.sh +++ b/cron_fritzbox-reboot.sh @@ -29,7 +29,7 @@ logfile=logfile.log date=`date +"%d.%m.%Y %H:%M:%S"` ###====### -# Script # +# Skript # ###====### location="/upnp/control/deviceconfig"