User Tools

Site Tools


openwrt:cron

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
openwrt:cron [2022/02/28 08:59] – aistisopenwrt:cron [2022/12/28 09:11] (current) – aistis
Line 7: Line 7:
  
 <code> <code>
-uci set firewall.@rule[1].enabled='1' && +# uci set firewall.@rule[1].enabled='1' && 
-30 23 * * 0-4 uci set firewall.@rule[0].enabled='1' && fw3 reload &>/dev/null + 
-30 23 * * 0-4 uci set firewall.@rule[1].enabled='1' && fw3 reload &>/dev/null+0 23 * * 0-4 uci set firewall.@rule[0].enabled='1' && uci commit firewall && fw3 reload &>/dev/null 
 +0 23 * * 0-4 uci set firewall.@rule[1].enabled='1' && uci commit firewall && fw3 reload &>/dev/null 
 + 
 +59 23 * * * uci set firewall.@rule[0].enabled='1' && uci commit firewall && fw3 reload &>/dev/null 
 +59 23 * * * uci set firewall.@rule[1].enabled='1' && uci commit firewall && fw3 reload &>/dev/null 
 + 
 +0 6 * * * uci set firewall.@rule[0].enabled='0' && uci commit firewall && fw3 reload &>/dev/null 
 +0 6 * * * uci set firewall.@rule[1].enabled='0' && uci commit firewall && fw3 reload &>/dev/null
  
-0 7 * * 0-4 uci set firewall.@rule[0].enabled='0' && fw3 reload &>/dev/null 
-0 7 * * 0-4 uci set firewall.@rule[1].enabled='0' && fw3 reload &>/dev/null 
  
 uci set firewall.@rule[0].enabled='1' && uci commit firewall && /etc/init.d/network restart uci set firewall.@rule[0].enabled='1' && uci commit firewall && /etc/init.d/network restart
 uci set firewall.@rule[0].enabled='1' && uci commit firewall && fw3 reload &>/dev/null uci set firewall.@rule[0].enabled='1' && uci commit firewall && fw3 reload &>/dev/null
 +
 +
 +
 +0 23 * * 0-4 uci set firewall.@rule[13].enabled='1' && uci commit firewall && service firewall restart && /etc/init.d/network restart
 +59 23 * * 0-4 uci set firewall.@rule[13].enabled='1' && uci commit firewall && service firewall restart && /etc/init.d/network restart
 +0 7 * * * uci set firewall.@rule[13].enabled='0' && uci commit firewall && service firewall restart && /etc/init.d/network restart
  
 </code> </code>
openwrt/cron.1646031541.txt.gz · Last modified: by aistis