User Tools

Site Tools


openwrt:cron

Differences

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

Link to this comparison view

Next revision
Previous revision
openwrt:cron [2022/02/02 08:46] – created aistisopenwrt:cron [2022/12/28 09:11] (current) – aistis
Line 4: Line 4:
 0 23 * * 0-4 uci set network.@switch_vlan[0].ports="4 6t" && uci commit network && /etc/init.d/network restart 0 23 * * 0-4 uci set network.@switch_vlan[0].ports="4 6t" && uci commit network && /etc/init.d/network restart
 0 6 * * * uci set network.@switch_vlan[0].ports="0 1 2 3 4 6t" && uci commit network && /etc/init.d/network restart 0 6 * * * uci set network.@switch_vlan[0].ports="0 1 2 3 4 6t" && uci commit network && /etc/init.d/network restart
 +</code>
 +
 +<code>
 +# uci set firewall.@rule[1].enabled='1' &&
 +
 +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
 +
 +
 +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
 +
 +
 +
 +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.1643784406.txt.gz · Last modified: by aistis