ddns-scripts: fix unefficent sh script
authorAnsuel Smith <redacted>
Thu, 24 May 2018 01:36:38 +0000 (03:36 +0200)
committerAnsuel Smith <redacted>
Sat, 2 Jun 2018 16:04:16 +0000 (18:04 +0200)
commit8bb49eb5edb9aa455816324b1fe69cb188c9f592
treea6290e73af621ee0eb02a2885a5f75c38a4fb8eb
parentaf5ebf6220530cfd04d629980193446444575b0d
ddns-scripts: fix unefficent sh script

Currently this 3 variable are used only 1 time in the sh script and cause 10s of delay for them to load... move them to load only if it's required by the command. This also fix luci-app-ddns delay problem derived by calling dns_lucihelper (that use tdns_functions to load data) for the version.

Signed-off-by: Ansuel Smith <redacted>
net/ddns-scripts/Makefile
net/ddns-scripts/files/dynamic_dns_functions.sh
net/ddns-scripts/files/update_cloudflare_com_v4.sh
net/ddns-scripts/files/update_godaddy_com_v1.sh
git clone https://git.99rst.org/PROJECT