core115: Add captive portal cron jobs to updater

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2017-10-05 11:38:05 +01:00
parent bbc69f228d
commit 112a09508e

View File

@@ -48,6 +48,14 @@ ldconfig
openvpnctrl -s
openvpnctrl -sn2n
grep -q "captivectrl" /var/spool/cron/root.orig || cat <<EOF >> /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