Changeset 30201


Ignore:
Timestamp:
2012-02-05T16:07:34+01:00 (6 years ago)
Author:
jow
Message:

[packages_10.03.2] ddns-scripts: merge r29909, r29977

Location:
branches/packages_10.03.2/net/ddns-scripts
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/packages_10.03.2/net/ddns-scripts/Makefile

    r29121 r30201  
    33PKG_NAME:=ddns-scripts 
    44PKG_VERSION:=1.0.0 
    5 PKG_RELEASE:=17 
     5PKG_RELEASE:=18 
    66 
    77PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) 
  • branches/packages_10.03.2/net/ddns-scripts/files/etc/config/ddns

    r27677 r30201  
    4949# will expire your domain if you don't connect and do an update 
    5050# every so often).  Use the "check_interval" to specify how 
    51 # often to check whether an update is necessary, and the  
    52 # "force_interval" option to specify how often to force an 
    53 # update.  Specify the units for these values with the "check_unit" 
    54 # and the "force_unit" options.  Units can be "days", "hours", 
    55 # "minutes" or "seconds".  The default force_unit is hours and the 
    56 # default check_unit is seconds.  The default check_interval is 
    57 # 600 seconds, or ten minutes.  The default force_interval is  
    58 # 72 hours or 3 days. 
     51# often to check whether an update is necessary, the "retry_interval" 
     52# to specify how often to retry in case the update has failed, and 
     53# the "force_interval" option to specify how often to force an 
     54# update.  Specify the units for these values with the "check_unit", 
     55# the "retry_init" and the "force_unit" options.  Units can be 
     56# "days", "hours", "minutes" or "seconds".  The default force_unit 
     57# is hours, the default retry_unit is seconds and the default 
     58# check_unit is seconds.  The default check_interval is 600 seconds, 
     59# or ten minutes.  The default retry_interval is 60 seconds, or one 
     60# minute. The default force_interval is 72 hours or 3 days. 
    5961# 
    6062# 
     
    7880        option check_interval   "10" 
    7981        option check_unit       "minutes" 
     82        option retry_interval   "60" 
     83        option retry_unit       "seconds" 
    8084 
    8185        #option ip_source       "interface" 
  • branches/packages_10.03.2/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_updater.sh

    r25578 r30201  
    6767then 
    6868        check_interval=600 
     69fi 
     70 
     71if [ -z "$retry_interval" ] 
     72then 
     73        retry_interval=60 
    6974fi 
    7075 
     
    199204                #default is seconds 
    200205                check_interval_seconds=$check_interval 
     206                ;; 
     207esac 
     208 
     209 
     210 
     211#compute retry interval in seconds 
     212case "$retry_unit" in 
     213        "days" ) 
     214                retry_interval_seconds=$(($retry_interval*60*60*24)) 
     215                ;; 
     216        "hours" ) 
     217                retry_interval_seconds=$(($retry_interval*60*60)) 
     218                ;; 
     219        "minutes" ) 
     220                retry_interval_seconds=$(($retry_interval*60)) 
     221                ;; 
     222        "seconds" ) 
     223                retry_interval_seconds=$retry_interval 
     224                ;; 
     225        * ) 
     226                #default is seconds 
     227                retry_interval_seconds=$retry_interval 
    201228                ;; 
    202229esac 
     
    290317                #here we actually connect, and perform the update 
    291318                update_output=$( $retrieve_prog "$final_url" ) 
     319                if [ $? -gt 0 ] 
     320                then 
     321                        verbose_echo "update failed" 
     322                        sleep $retry_interval_seconds 
     323                        continue 
     324                fi 
    292325 
    293326                verbose_echo "Update Output:" 
  • branches/packages_10.03.2/net/ddns-scripts/files/usr/lib/ddns/services

    r30087 r30201  
    4141# dnsExit.com free dynamic DNS update url 
    4242"dnsexit.com"           "http://www.dnsexit.com/RemoteUpdate.sv?login=[USERNAME]&password=[PASSWORD]&host=[DOMAIN]&myip=[IP]" 
     43 
     44# OVH 
     45"ovh.com" "http://[USERNAME]:[PASSWORD]@www.ovh.com/nic/update?system=dyndns&hostname=[DOMAIN]&myip=[IP]" 
     46 
     47# dns-o-matic is a free service by opendns.com for updating multiple hosts and 
     48# dynamic dns services in one api call. To update all your configured services 
     49# at once, use "all.dnsomatic.com as the hostname. 
     50"dnsomatic.com" "http://[USERNAME]:[PASSWORD]@updates.dnsomatic.com/nic/update?hostname=[DOMAIN]&myip=[IP]" 
     51 
     52# 3322.org 
     53"3322.org"  "http://[USERNAME]:[PASSWORD]@members.3322.org/dyndns/update?system=dyndns&hostname=[DOMAIN]&myip=[IP]" 
     54 
     55# namecheap.com 
     56"namecheap.com" "http://dynamicdns.park-your-domain.com/update?host=[USERNAME]&domain=[DOMAIN]&password=[PASSWORD]&ip=[IP]" 
Note: See TracChangeset for help on using the changeset viewer.