From 112a09508e9538d67af9e60c207724eca49b1c51 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 5 Oct 2017 11:38:05 +0100 Subject: [PATCH] core115: Add captive portal cron jobs to updater Signed-off-by: Michael Tremer --- config/rootfiles/core/115/update.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/rootfiles/core/115/update.sh b/config/rootfiles/core/115/update.sh index e0ee121ce7..95260c88c1 100644 --- a/config/rootfiles/core/115/update.sh +++ b/config/rootfiles/core/115/update.sh @@ -48,6 +48,14 @@ ldconfig openvpnctrl -s openvpnctrl -sn2n +grep -q "captivectrl" /var/spool/cron/root.orig || cat <> /var/spool/cron/root.orig +# Cleanup captive clients +%hourly * /usr/bin/captive-cleanup + +# Reload captive firewall rules +%nightly * 23-1 /usr/local/bin/captivectrl >/dev/null +EOF +fcrontab -z # This update need a reboot... #touch /var/run/need_reboot -- 2.39.5