Tomato命令

文章来自  山隈的博客 // 树欲静而风不止,子欲养而亲不待。。。



Tomato命令

1:中文ssid:
nvram set wl1_ssid="永林干货-5G"
nvram commit
2:BCM NAT加速技术:
modprobe bcm_nat
如果看到了BCM for NAT :INIT 即表示挂载OK
3查看无线驱动版本
dmesg | grep BCM
3:修改默认地区:
nvram set wl_country_code=US
nvram set wl0_country_code=US
nvram set wl1_country_code=US
nvram set wl0_country=US
nvram set wl1_country=US
nvram set pci/1/1/ccode=US
nvram set pci/2/1/ccode=US
nvram set regulation_domain=US
nvram set regulation_domain_5G=US
nvram commit
4:查看路由cpu信息:
cat /proc/cpuinfo
查看CPU温度:
wl -i eth1 phytempsense
6:清除nvrom:
mtd-erase -d nvram
7:nvram保存:
nvram commit
8:路由器重启:
reboot
9:列出 NVRAM 内所有参数:
nvram show
10:用 grep 命令来抽取部份资讯,例如:
nvram show | grep lan

11:添加或修改一些参数,例如我想把 LAN 的 IP 由 192.168.1.1 改为 192.168.1.2,可执行:
nvram set lan_ipaddr=192.168.1.2
nvram commit
reboot
12:删除一些参数,不过这个功能很少用到,因为 NVRAM 的 64K 容量足够保存大量参数,大部份人都赖得去删。例如我想删除“dr_lan_rx=0”这个参数,请执行:
nvram unset dr_lan_rx
13:linux驱动加载命令和驱动模块信息查看
驱动操作命令:
加载驱动
insmod / modprobe
14:修改文件权限
chmod 777 * -R
15安装ipk
ipkg install
16删除文件夹实例:
rm -rf /var/log/httpd/access
将会删除/var/log/httpd/access目录以及其下所有文件、文件夹
17删除文件使用实例:
rm -f /var/log/httpd/access.log
将会强制删除/var/log/httpd/access.log这个文件

 
 
Sign in to leave a comment.
No Leanote account? Sign up now.
0 comments