diff options
author | Christian Schoenebeck <christian.schoenebeck@gmail.com> | 2016-05-08 19:26:53 +0200 |
---|---|---|
committer | Christian Schoenebeck <christian.schoenebeck@gmail.com> | 2016-05-08 19:26:53 +0200 |
commit | db8bb549aa79ed367e19d03afaa6e55d4118906f (patch) | |
tree | 1dbd3c6cdbc5b163f5443dd4669572682644b106 /applications/luci-app-ddns/luasrc/tools/ddns.lua | |
parent | 219e52ee8e737afbd9b924e9516aa59d0d1a852e (diff) |
luci-app-ddns: adapt to support khost (Knot DNS) and drill (ddns-scripts 2.7.1)
adapt to support khost (Knot DNS) and drill (ddns-scripts 2.7.1)
Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
Diffstat (limited to 'applications/luci-app-ddns/luasrc/tools/ddns.lua')
-rwxr-xr-x | applications/luci-app-ddns/luasrc/tools/ddns.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/applications/luci-app-ddns/luasrc/tools/ddns.lua b/applications/luci-app-ddns/luasrc/tools/ddns.lua index b326cd120..6b626b9e3 100755 --- a/applications/luci-app-ddns/luasrc/tools/ddns.lua +++ b/applications/luci-app-ddns/luasrc/tools/ddns.lua @@ -24,6 +24,8 @@ has_fetch = (SYS.call( [[which uclient-fetch >/dev/null 2>&1]] ) == 0) has_fetchssl = NXFS.access("/lib/libustream-ssl.so") has_bbwget = (SYS.call( [[$(which wget) -V 2>&1 | grep -iqF "busybox"]] ) == 0) has_bindhost = (SYS.call( [[which host >/dev/null 2>&1]] ) == 0) + or (SYS.call( [[which khost >/dev/null 2>&1]] ) == 0) + or (SYS.call( [[which drill >/dev/null 2>&1]] ) == 0) has_hostip = (SYS.call( [[which hostip >/dev/null 2>&1]] ) == 0) has_nslookup = (SYS.call( [[$(which nslookup) localhost 2>&1 | grep -qF "(null)"]] ) ~= 0) has_ipv6 = (NXFS.access("/proc/net/ipv6_route") and NXFS.access("/usr/sbin/ip6tables")) |