LuCI 页面修改
来源:互联网 发布:linux vi编程 编辑:程序博客网 时间:2024/05/18 00:36
转载有道:http://blog.csdn.net/u013131156/article/details/45824203
说明:目前先保留来下自己使用,尚未亲测、。
LuCI 页面修改
简单的文件配置,路由上路径主要是
/usr/lib/lua/luci/
下子目录:/controller/
、/model/cbi/
、/view/
,或者根目录下的/www/
中.可以在路上修改查看效果.
如果想要编译自定义LuCI页面的固件,请尝试修改如下OpenWRT源码结构路径内的LuCI文件.
xxx/package/feeds/luci/luci/luci/libs/web/root/etc/config/luci --- AA 版本pakages/feeds/luci/中xxx\feeds\luci\luci\luci\libs\web\root\etc\config\luci --- AA 版本的feeds/luci文件夹中xxx/feeds/luci/modules/base/root/etc/config/luci --- BB 版本中feeds中,bb版本open修改了luci配置文件路径,并且pakages/feeds路径中也没有luci配置文件了.不知道这个路径是不是正确的.再者就是修改 xxx/dl/ 下的源码压缩包,或者 xxx/build_dir/$target/下源码
注意
:如果在xxx/feeds 修改可能需要执行 ./scripts/feeds install luci 更新
主题Logo替换
源码路径:xxx/feeds/luci/luci/luci/themes/bootstrap/htdocs/luci-static/bootstrap/logo.jpg
路由路径:/www/luci-static/bootstrap/logo.jpg
Tips:
由于版本的更新,文件路径可能变更,此处列出的为BB版本的例子.如果找不到可以用命令手动在/feeds/中查找:find ./ -name logo.jpg.此处为bootstrap主题Logo,其他主题的Logo修改类似.
页面脚标信息
源码路径:xxx/feeds/luci/luci/luci/themes/bootstrap/luasrc/view/themes/bootstrap/footer.htm
路由路径:/usr/lib/lua/luci/view/themes/bootstrap/footer.htm
修改位置:
Powered by <%= luci.__appname__ .. " (" .. luci.__version__ .. ")" %> <%=luci.version.distversion%>
status状态栏信息
源码路径:xxx/feeds/luci/modules/admin-full/luasrc/view/admin_status/index.htm
路由路径:/usr/lib/lua/luci/view/admin_status/index.html
修改位置:找到类似的代码段修改.
<%:System%><%:Hostname%><%=luci.sys.hostname() or "?"%><%:Model%><%=pcdata(model or "?")%><%:Firmware Version%><%=pcdata(luci.version.distname)%> <%=pcdata(luci.version.distversion)%> /<%=pcdata(luci.version.luciname)%> (<%=pcdata(luci.version.luciversion)%>)<%:Kernel Version%><%=luci.sys.exec("uname -r")%><%:Local Time%>-<%:Uptime%>-<%:Load Average%>-
- LuCI 页面修改
- OpenWrt自定义luci页面来修改配置文件
- luci修改
- Luci页面配置
- openwrt luci界面修改
- openwrt luci界面修改
- luci界面修改 :一
- OpenWRT 修改LuCI:语言、主题
- OpenWRT 修改LuCI:语言、主题
- luci
- Luci
- Openwrt中luci配置页面cbi小记
- luci-app-ser2net的OpenWrt页面制作
- luci-app-networking_monitor的OpenWrt页面制作
- luci与页面的数据交互
- openwrt web管理luci界面修改
- openwrt web管理luci界面修改
- openwrt web管理luci界面修改
- iOS退出应用代码
- ORACLE数据库测试数据插入速度
- 设计模式之适配器模式--- Pattern Adapter
- JQuery倒计时跳转
- Linux vi 中移动光标 命令
- LuCI 页面修改
- 孙子兵法与企业经营2
- 两个DIV紧靠居中
- 微信接口
- Eclipse的Servers视图中无法添加Tomcat6/Tomcat7
- DBCP数据库连接池的使用
- Android开发中的多线程
- Aizu 0005 GCD and LCM(欧几里得)
- 离线web应用程序