Add cpufantemp.py, hddtemp.py, sysFanTemp.py

This commit is contained in:
2024-03-25 14:38:01 +00:00
parent cf5f43c914
commit 1b136c31d7
4 changed files with 158 additions and 1 deletions

View File

@@ -24,7 +24,7 @@ INTERNET_IP=`curl -s http://ipv4.icanhazip.com`
DNS_RECORD_IP=`dig +short "${URLS[0]}" | grep -Eo '([0-9]{1,3}\.){3}[0-9]{1,3}' | awk 'NR==1{print}'`
NOW_TIME=`date`
if [ "$INTERNET_IP" != "$DNS_RECORD_IP" ]
if [ "$INTERNET_IP" != "$DNS_RECORD_IP" ] || [ "$1" = "-f" ]
then
printf "[${NOW_TIME}]: Renew IP: ${DNS_RECORD_IP} to ${INTERNET_IP}\n"
for ((i = 0; i < ${#URLS[@]}; i++)); do