mirror of
https://github.com/JamesonHuang/OpenWrt_Luci_Lua.git
synced 2024-11-23 13:50:11 +00:00
deleted: "OpenWrt\345\221\275\344\273\244\350\256\260\345\275\225.txt"
This commit is contained in:
parent
2001ac625a
commit
c4c87cade5
114
OpenWrt命令记录.txt
114
OpenWrt命令记录.txt
@ -1,114 +0,0 @@
|
||||
openwrt配置命令:
|
||||
|
||||
sudo minicom -D /dev/ttyUSB0
|
||||
la /dev/ttyUSB0
|
||||
|
||||
|
||||
cd /etc/config/
|
||||
cat wireless
|
||||
/etc/init.d/network reload
|
||||
cat /etc/config/wireless
|
||||
router_reset
|
||||
ifconfig
|
||||
|
||||
r13: http://192.168.232.1
|
||||
|
||||
r10: http://192.168.233.1
|
||||
|
||||
亮哥邮箱: zhengkl@meizu.com
|
||||
|
||||
ssh root@192.168.232.1
|
||||
|
||||
局域网地址:10.2.64.20
|
||||
|
||||
--------------------------------------------------------
|
||||
|
||||
|
||||
git配置命令:
|
||||
|
||||
|
||||
git branch -a
|
||||
|
||||
git checkout 切换分支
|
||||
|
||||
git log
|
||||
|
||||
git head
|
||||
|
||||
git diff
|
||||
|
||||
----------------------------------------------------------
|
||||
gvim字体设置:
|
||||
DejaVu Sans Mono 12
|
||||
|
||||
中继器配置:
|
||||
cd /usr/bin/apcli_connect.sh
|
||||
|
||||
---------------------------------------------------------
|
||||
|
||||
|
||||
如何通过Luci界面找到相应函数代码并修改?
|
||||
(1)浏览器找到相关函数名
|
||||
(2)在luci/controller/admin/network.lua中找到相应函数
|
||||
(3)看懂,修改
|
||||
(4)移植到r13的api/index.lua或meizu目录的相应lua文件中
|
||||
(5)./build.sh
|
||||
|
||||
修改 / 编译:
|
||||
/usr/lib/lua/meizu/build.sh
|
||||
logread -f 查看日志
|
||||
-----------------------------------------------------------
|
||||
|
||||
小米luci代码路径:
|
||||
|
||||
/home/rh/my_code/miwifi_package_rom/usr/lib/lua/luci
|
||||
|
||||
|
||||
小米功能基础库路径:
|
||||
/home/rh/my_code/miwifi_package_rom/usr/lib/lua/xiaoqiang
|
||||
|
||||
|
||||
|
||||
定时wifi开关(智能开关)路径:
|
||||
|
||||
/home/rh/my_code/miwifi_package_rom/usr/lib/lua/luci/controller/api/xqsystem.lua --line 1517
|
||||
|
||||
/home/rh/my_code/miwifi_package_rom/usr/lib/lua/xiaoqiang/common/XQFunction.lua --line 89 & 29
|
||||
|
||||
|
||||
|
||||
------------------------------------------------------------
|
||||
grep:
|
||||
grep -F "bind_router" ./* -Rn --查找正文中含有bind_router的关键字
|
||||
-F 匹配字符串
|
||||
-R 递归匹配
|
||||
-n 显示行号
|
||||
|
||||
|
||||
ctags:
|
||||
|
||||
使用ctags: ctags -R ./*
|
||||
|
||||
ctrl + ] 查找具体函数
|
||||
ctrl + t 返回调用函数处
|
||||
|
||||
taglist:
|
||||
:Tlist 打开Taglist
|
||||
|
||||
------------------------------------------------------------
|
||||
传文件到U盘:/media
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user