openwrt 设置路由器定时重启 计划任务 # * * * * * command to execute # │ │ │ │ │ # │ │ │ │ │ # │ │ │ │ └───── 一周内的天数 (0 - 6) (0 to 6 are Sunday to Saturday, or use names; 7 is Sunday, the same as 0) # │ │ │ └────────── 月 (1 - 12) # │ │ └─────────────── 天 (1 - 31) # │ └──────────────────── 小时 (0 - 23) # └───────────────────────── min (0 - 59) 如 配置入下: 周一至周五 凌晨1.30关闭无线,要睡觉了。睡觉避免辐射 早上7点打开无线,手机要离线下载新闻,上班路上看 早上9点关闭无线 下午16点开启无线等待楼主下班回家 周六至周日 凌晨2点关闭无线睡觉 早上7点开启无线至第二天凌晨2点 30 1 * * 1-5 /etc/wifioff.sh 0 7 * * 1-5 /etc/wifion.sh 0 9 * * 1-5 /etc/wifioff.sh 0 16 * * 1-5 /etc/wifion.sh 0 2 * * 6,0 /etc/wifioff.sh 0 7 * * 6,0 /etc/wifion.sh 查看CPU 负载 cat /proc/interrupts 使用查看linux irq发现1e100000.ethernet(以太网驱动)与ra0(mt7615驱动)在同一cpu中(CPU0),造成在跑吞吐量时cpu0满负荷,但是cpu1/cpu2/cpu3空闲 分配CPU负载 echo 4 > /proc/irq/21/smp_affinity echo 8 > /proc/irq/21/smp_affinity top -d1 1 echo "nameserver 114.114.114.114">/tmp/resolv.conf echo "nameserver 10.10.10.1">/tmp/resolv.conf rm -f /var/lock/opkg.lock opkg update