Add cpufantemp.py, hddtemp.py, sysFanTemp.py
This commit is contained in:
2
ddns.sh
2
ddns.sh
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user