summaryrefslogtreecommitdiff
path: root/net/https-dns-proxy/files/https-dns-proxy.init
diff options
context:
space:
mode:
authorStan Grishin <stangri@melmac.ca>2023-02-22 20:35:59 +0000
committerStan Grishin <stangri@melmac.ca>2023-02-22 20:39:56 +0000
commit656835201b9b60d3319aa262b2eb767f1001fd52 (patch)
tree5be2f3e517235f7e9c60b2ec44602ed75c1071a6 /net/https-dns-proxy/files/https-dns-proxy.init
parent0a15829d7377cb989694fb3cef5b789d6fbad1d0 (diff)
https-dns-proxy: 2022-10-15-11 update
* config file update * introduce boot() function Signed-off-by: Stan Grishin <stangri@melmac.ca> (cherry picked from commit 30aefce999bab3c24ce06594ee2f411cf2d8c72f)
Diffstat (limited to 'net/https-dns-proxy/files/https-dns-proxy.init')
-rwxr-xr-xnet/https-dns-proxy/files/https-dns-proxy.init5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/https-dns-proxy/files/https-dns-proxy.init b/net/https-dns-proxy/files/https-dns-proxy.init
index 0e75a14d7..b4c55fea3 100755
--- a/net/https-dns-proxy/files/https-dns-proxy.init
+++ b/net/https-dns-proxy/files/https-dns-proxy.init
@@ -127,6 +127,11 @@ append_bootstrap() {
[ "$ipv6_resolvers_only" -eq 0 ] && xappend '-4'
}
+boot() {
+ ubus -t 30 wait_for network.interface 2>/dev/null
+ rc_procd start_service 'on_boot'
+}
+
start_instance() {
local cfg="$1" param listen_addr listen_port ipv6_resolvers_only p url