Openwrt
StellarDeng
厚积薄发
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
openwrt挂载U盘
Openwrt挂载U盘1、内核编译配置:Kernel modules ---> USB Support ---> -*- kmod-usb-core kmod-usb-ohci kmod-usb-storageFilesystems ---> kmod-fs-vfat 2、创建U盘挂载目录/overlay/mnt#mkdir /overlay/m原创 2014-11-13 17:44:15 · 3133 阅读 · 0 评论 -
luci笔记
CBI相关DummyValue只读文本框,只输入不输出Value单行文本框,可输入输出Flagcheckbox,1选中,0未选中复制去Google翻译翻译结果原创 2014-12-24 15:03:24 · 1779 阅读 · 0 评论 -
lua 中pairs 和 ipairs区别
lua 中pairs 和 ipairs区别标准库提供了集中迭代器,包括迭代文件每行的(io.lines),迭代table元素的(pairs),迭代数组元素的(ipairs),迭代字符串中单词的 (string.gmatch)等等。LUA手册中对与pairs,ipairs解释如下:ipairs(t)Returns three value转载 2014-12-08 10:37:13 · 665 阅读 · 0 评论 -
Lua协同程序coroutine
coroutine1. 什么是协同(coroutine)? 协同程序(coroutine)与线程比较类似:拥有独立的堆栈,独立的局部变量,独立的指令指针,但是和其他协同程序共享全局变量等很多信息。 线程和协同程序的主要不同在于:在多处理器情况下,从概念上来讲多线程程序同时运行多个线程;而协同程序是通过协作来完成,在任一指定时刻只有一个协同程序转载 2014-12-05 15:25:56 · 878 阅读 · 0 评论 -
study lua step by step
http://www.cnblogs.com/stephen-liu74/archive/2012/07/30/2487201.html转载 2014-12-08 11:05:08 · 657 阅读 · 0 评论 -
lua基本库函数总结
lua库函数lua5.2官网手册:Lua 5.2 Reference Manual:http://www.lua.org/manual/5.2/(基本函数参考第6章节)lua所有文档:lua Documentation :http://www.lua.org/docs.htmlassert (v [, message])功能:相当于C的断言,原创 2014-12-11 09:56:38 · 2348 阅读 · 0 评论 -
lua的面向对象之封装、继承、多态
lua面向对象Lua中的table就是一种对象,但是如果直接使用仍然会存在大量的问题,见如下代码:1 Account = {balance = 0}2 function Account.withdraw(v)3 Account.balance = Account.balance - v4 end5 --下面是测试调用函数6 Account.withdraw(1转载 2014-12-11 15:06:34 · 911 阅读 · 0 评论 -
source insight 增加对lua语言的支持配置
效果:支持lua语法高亮(关键字、函数等),缺陷:还是无法识别变量配置文件下载地址:http://www.sourceinsight.com/public/languages/Lua.CLF配置过程:1、把Lua.CLF文件放在source insight安装路径下2、Options > Preferences>Languages>Import,选择刚下载Lua原创 2014-12-12 10:13:39 · 7736 阅读 · 1 评论 -
luci修改
效果:在status栏增加两个入口Call Test 、View Test ;点击call test可以调用函数将系统重启点击view test 可以跳转网页到hello.htm修改:1、在文件 /usr/lib/lua/luci/controller/admin/status.lua中加入以下内容:--add singcolentry({"admi原创 2014-12-08 18:07:32 · 1156 阅读 · 0 评论 -
htm插入lua脚本规则
lua code %>lua variable %>string %>//直接显示在网页的字符串lua header file -%>include other htm file %>复制去Google翻译翻译结果包括其他的htm文件原创 2014-12-24 14:08:26 · 2243 阅读 · 0 评论 -
Openwrt Kernel Configuration
文章源自openwrt官网,中文由笔者备注Note that make kernel_menuconfig modifies the Kernel configuration templates of the build tree and clearing the build_dir will not revert them:While you won't typically ne翻译 2014-12-02 11:21:44 · 1218 阅读 · 0 评论 -
Openwrt Custom Files
Custom files 定制文件Warning! Be carefull! OpenWrt failsafe relies on 100%-working base files on the SquashFS-partition (i.e. the /rom-directory), so in case you mis-configu翻译 2014-12-02 11:22:54 · 1952 阅读 · 0 评论 -
Luci实现框架
Luci实现框架2013-05-14 22:01 by zmkeil, 6461 阅读, 6 评论, 收藏, 编辑1.总述 上一篇总结了uhttpd的工作方式,openwrt中利用它作为web服务器,实现客户端web页面配置功能。对于request处理方式,采用的是cgi,而所用的cgi程序就是luci,工作框架如下图所示: Client端和se转载 2014-11-04 09:42:11 · 1224 阅读 · 0 评论 -
openwrt开发之用户程序打包
打包用户程序到openwrt的固件bin文件 知道用户程序代码工程建立目录位置:openwrt/trunk/package,就可以开始建立工程了 1、建框架进入openwrt/trunk/package,创建目录helloop,进入hellop目录,创建Makefile文件和src目录,进入src目录,创建helloop.c和Makefile2、编辑helloop.c原创 2014-11-20 17:21:09 · 2125 阅读 · 0 评论 -
Openwrt支持挂载nfs文件系统的编译
Openwrt支持挂载nfs文件系统的编译下载下来的openwrt源码默认编译配置是不支持nfs文件系统挂载的,需要手动配置编译原以为在内核文件系统编译选项里面,结果发现只有nfs server,选择编译了还是没法挂载nfs文件系统。后来发现,原来编译选项在busybox里面。#make menuconfigBase system原创 2014-11-13 12:44:14 · 6981 阅读 · 1 评论
分享