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' && 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