TT QOS 定时启动与关闭脚本
作者:疯疯 发表在www.ssbbcc.com 于2010年09月26日
TT dualwan 的脚本,用来控制QOS启动与关闭的脚本
19点30分启动,1点30分关闭
#!/bin/sh +x
while [ture]; do
HOUR=`date +%H`
MINUES=`date +%M`
SHUT="1"
if [ $HOUR -gt 19 ];then
if [ $MINUES -gt 30 ];then
service qoslimit start
SHUT= "0"
fi
fi
if [ 1 -gt $HOUR ];then
if [ 30 -gt $MINUES ];then
service qoslimit stop
SHUT= "1"
fi
fi
if [ "$SHUT" == "1" ];then
service qoslimit stop
fi
sleep 10m
done
这是启动与关闭程序限制的脚本,可以放到定时脚本运行里面。
nvram set new_applimit_enable="1"
nvram commit
service applimit start
nvram set new_applimit_enable="0"
nvram commit
service applimit stop
感谢你发表评论 www.ssbbcc.com 鼓励全人类学习象形字