mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 10:01:20 +00:00
ddns-scripts: Update to Version 2.1.0-5
restructure startup of dnymaic_dns_updater.sh - first run load_all_config_options (it returns 1 if SECTION_ID not found) #779 - set all defaults if necessary - verify if username and/or password is needed inside update_url #779 - remove wait - will be done by retry_interval and retry_count if communication fails provider specific update scripts - verify if username/password are needed services_ipv6 - added freedns.afraid.org - IPv6 should work due to their documentation minor fixes Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# sample script for sending user defined updates
|
||||
# 2014 Christian Schoenebeck <christian dot schoenebeck at gmail dot com>
|
||||
# 2014-2015 Christian Schoenebeck <christian dot schoenebeck at gmail dot com>
|
||||
#
|
||||
# activated inside /etc/config/ddns by setting
|
||||
#
|
||||
@@ -18,6 +18,9 @@
|
||||
#
|
||||
# tested with spdns.de
|
||||
local __URL="http://[USERNAME]:[PASSWORD]@update.spdns.de/nic/update?hostname=[DOMAIN]&myip=[IP]"
|
||||
# inside url we need username and password
|
||||
[ -z "$username" ] && write_log 14 "Service section not configured correctly! Missing 'username'"
|
||||
[ -z "$password" ] && write_log 14 "Service section not configured correctly! Missing 'password'"
|
||||
|
||||
# do replaces in URL
|
||||
__URL=$(echo $__URL | sed -e "s#\[USERNAME\]#$URL_USER#g" -e "s#\[PASSWORD\]#$URL_PASS#g" \
|
||||
|
||||
Reference in New Issue
Block a user