From: Michael Tremer Date: Thu, 5 Oct 2017 10:38:05 +0000 (+0100) Subject: core115: Add captive portal cron jobs to updater X-Git-Tag: v2.19-core115~55 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=112a09508e9538d67af9e60c207724eca49b1c51;p=ipfire-2.x.git core115: Add captive portal cron jobs to updater Signed-off-by: Michael Tremer --- 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