spotfilter: add a delay after setting up a captive portal

Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2023-06-20 07:07:24 +02:00
parent f74cee802b
commit 9621c21535

View File

@@ -13,6 +13,7 @@ add_interface() {
config_get_bool enabled "$cfg" "configure_spotfilter" 0
[ $enabled -eq 0 ] || /usr/bin/captive generate "$cfg" > /tmp/spotfilter-$cfg.json
ubus call spotfilter interface_add "$(cat /tmp/spotfilter-$cfg.json)"
sleep 5
}
reload_service() {