
luci
wsclinux
这个作者很懒,什么都没留下…
展开
-
Luci的工作流程
1、浏览器敲入192.168.1.1后就,路由器作为uhttp server会把/www/index.html这个页面返回给浏览器,而且这个页面又会刷新, 去请求页面/luci/cgi,代码如红色标记:LuCI - Lua Configuration Interface2.然后uhttp server就会去调用/www/cgi-bin/luci这上脚本,这个脚本的代码如转载 2015-08-26 00:38:28 · 8526 阅读 · 1 评论 -
UCI提供给shell和lua使用的配置接口
1、uci提供给shell使用的配置借口有两套:1)config_get用来读取一个config值。命令格式如下:config_getvar_name setction_name option_name var_name: 用来存放config值的变量。settion_name: 就是section 的名字option_name: 就是option的名字 co原创 2015-08-26 00:12:55 · 12000 阅读 · 0 评论 -
luci工作过程,总结的更好
1. 多语言1)检查:opkg list | grep luci-i18n-2)安装语言包:opkg install luci-i18n-hungarian 2.uhttpd这个是LuCI所在的Web Server。docroot在/www下边,index-html指向了/cgi-bin/luci,注意这是相对于docroot而言的路径。open转载 2015-08-27 01:22:52 · 1098 阅读 · 0 评论 -
openwrt之luci安装
参考:https://github.com/openwrt/luciluci这个清单在openwrt中默认就有的,但是因为openwrt的特性,只是在feed.conf.default(或者feeds.conf)中拥有清单以下这条清单:src-git luci https://github.com/openwrt/luci.git如果还没有清单中还没有这条条目,那么就要自己添加进去原创 2016-04-27 08:37:13 · 6870 阅读 · 0 评论 -
luci, show dynamic infomation on web
怎么在luci界面上动态显示某个状态信息,该信息还要实时更新?这个问题,可以参考时间更新的做法:第一,在 controller/sixing/下的advanced.lua文件下的index函数添加bind_status控件。entry({"sixing", "advanced", "bind_status"}, call("ddns_bind_status")) ,该控件定义,原创 2016-05-28 10:54:26 · 2408 阅读 · 1 评论