openwrt:cron
This is an old revision of the document!
openwrt switch port enable disable taged off untagged
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
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 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 && fw3 reload &>/dev/null
openwrt/cron.1646031541.txt.gz · Last modified: by aistis
