option led 'none'
option parallel_downloads '1'
option procd_trigger_wan6 '0'
+ option procd_boot_wan_timeout '60'
option verbosity '2'
# File size: 16.0K
# enabling this will disable processing of any other block/allow-lists
# option dnsmasq_config_file_url 'https://dnsmasq.oisd.nl/'
-# File size: 19.0M
+# File size: 1.4M
# block-list too big for most routers
-# list blocked_domains_url 'https://dbl.oisd.nl/'
+# list blocked_adblockplus_url 'https://small.oisd.nl/'
+
+# File size: 6.2M
+# block-list too big for most routers
+# list blocked_adblockplus_url 'https://nsfw.oisd.nl/'
+
+# File size: 6.2M
+# block-list too big for most routers
+# list blocked_adblockplus_url 'https://big.oisd.nl/'
+
+# File size: 1.5M
+# block-list too big for most routers
+# list blocked_domains_url 'https://small.oisd.nl/domains'
+
+# File size: 7.8M
+# block-list too big for most routers
+# list blocked_domains_url 'https://nsfw.oisd.nl/domains'
+
+# File size: 19.9M
+# block-list too big for most routers
+# list blocked_domains_url 'https://big.oisd.nl/domains'
# site was down on last check
# list blocked_domains_url 'http://support.it-mate.co.uk/downloads/hosts.txt'
load_network() {
local param="$1"
local i j wan_if wan_gw wan_proto
- local counter wan_if_timeout='20' wan_gw_timeout='5'
+ local counter wan_if_timeout="$procd_boot_wan_timeout" wan_gw_timeout='5'
counter=0
while [ -z "$wan_if" ]; do
network_flush_cache
network_find_wan wan_if
if [ -n "$wan_if" ]; then
- output "WAN Interface found: '${wan_if}'.\\n"
+ output "WAN interface found: '${wan_if}'.\\n"
break
fi
if [ "$counter" -gt "$wan_if_timeout" ]; then
- output "WAN Interface timeout, assuming 'wan'.\\n"
+ output "WAN interface timeout, assuming 'wan'.\\n"
wan_if='wan'
break
fi
network_flush_cache
network_get_gateway wan_gw "$wan_if"
if [ -n "$wan_gw" ]; then
- output "WAN Gateway found: '${wan_gw}.'\\n"
+ output "WAN gateway found: '${wan_gw}.'\\n"
return 0
fi
counter=$((counter+1))
- output "Waiting to discover $wan_if Gateway...\\n"
+ output "Waiting to discover $wan_if gateway...\\n"
sleep 1
done
json add error "errorNoWanGateway"
local canary_domains_mozilla
local config_update_enabled
local config_update_url
- local boot_delay
local download_timeout
local curl_max_file_size
local curl_retry
local verbosity
+ local procd_trigger_wan6
+ local procd_boot_wan_timeout
local led
local dns
local dns_instance
'curl_retry:range(0,30):3' \
'verbosity:range(0,2):2' \
'procd_trigger_wan6:bool:0' \
+ 'procd_boot_wan_timeout:integer:60' \
'led:or("", "none", file, device, string)' \
'dns:or("dnsmasq.addnhosts", "dnsmasq.conf", "dnsmasq.ipset", "dnsmasq.nftset", "dnsmasq.servers", "unbound.adb_list"):dnsmasq.servers' \
'dns_instance:or(list(integer, string)):0' \