mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 02:42:58 +02:00
core76: Add jobs for daylight saving time to updater.
This commit is contained in:
@@ -314,6 +314,15 @@ if [ -e /var/ipfire/qos/enable ]; then
|
||||
/usr/local/bin/qosctrl start
|
||||
fi
|
||||
|
||||
# Update crontab
|
||||
cat <<EOF >> /var/spool/cron/root.orig
|
||||
|
||||
# Re-read firewall rules every Sunday in March, October and November to take care of daylight saving time
|
||||
00 3 * 3 0 /usr/local/bin/timezone-transition /usr/local/bin/firewallctrl
|
||||
00 2 * 10-11 0 /usr/local/bin/timezone-transition /usr/local/bin/firewallctrl
|
||||
EOF
|
||||
fcrontab -z &>/dev/null
|
||||
|
||||
|
||||
case $(uname -m) in
|
||||
i?86 )
|
||||
|
||||
Reference in New Issue
Block a user