04 2016 档案
摘要:借鉴地址:http://www.pppei.net/blog/post/536 1、向文件 \target\linux\ar71xx\generic\profiles\atheros.mk 中添加ap143类型 define Profile/AP143 NAME:=Atheros AP143 ref
阅读全文
摘要:与openwrt.org的源码svn路径仅仅多了一个.cn svn://svn.openwrt.org.cn/openwrt/branches/backfiresvn://svn.openwrt.org.cn/openwrt/trunkluci的源码镜像:svn://svn.openwrt.org.
阅读全文
摘要:http://man.cx/vconfig%288%29 vconfig 作用: (802.1q)VLAN配置程序 root@hbg:/# vconfig --helpBusyBox v1.22.1 (2016-02-24 11:41:04 CST) multi-call binary. Usage
阅读全文
摘要:brctl 作用: 用来进行以太网桥接(bridge)的管理 主要用法如下: root@hbg:/# brctl --helpBusyBox v1.22.1 (2016-02-24 11:41:04 CST) multi-call binary. Usage: brctl COMMAND [BRID
阅读全文
摘要:以前使用iwconfig来配置和获取wireless的信息,目前openwrt已经废弃这种方式,采用 iwinfo 和 iw 命令来进行替代。 iwinfo的使用方法如下: root@hbg:/# iwinfo -hUsage: iwinfo <device> info // 查看设备信息 iwin
阅读全文
摘要:/etc/config/wireless是在boot启动时生成的。 代码在/etc/init.d/boot中,如下: /sbin/wifi detect > /tmp/wireless.tmp // 先生成临时文件wireless.tmp [ -s /tmp/wireless.tmp ] && {
阅读全文
摘要:https://wiki.openwrt.org/doc/howto/generic.debrick 变砖后需根据类型进行修复,主要有以下四种: (1)if only something on the JFFS2 partition is broken, you are still able to
阅读全文
摘要:路由协议分为:内部网关协议(IGP,Interior Gateway Protocol)和外部网关协议(EGP,Exterior Gateway Protocol)。 IGP用来交换同一自治系统中的所有路由器间的所有路由信息,适用于某一大型网络中的路由器组使用。 EGP以可控制的方式在不同的自治系统
阅读全文
摘要:https://wiki.openwrt.org/doc/devel/debugging 调试hostapd,其中hostapd的调试等级如下: # Levels (minimum value for logged events):# 0 = verbose debugging # 1 = debu
阅读全文
摘要:https://wiki.openwrt.org/doc/techref/procd Procd:Openwrt的进程管理守护进程(process management daemon),它与初始化脚本(/etc/init.d/*)保持联系,当进程相关联的配置文件更改时,会触发procd去重启或启动脚
阅读全文
摘要:https://wiki.openwrt.org/doc/howto/serial.console.password Openwrt 串口默认是没有密码的。Openwrt启动后,一个默认的密码将被启用去保护ssh登录和页面(http)登录,而串口登录密码却是空缺的。 将串口登录加入密码方法如下: 步
阅读全文
摘要:设置语言的流程一、关联的配置文件/etc/config/luci查看配置文件内容如下:root@hbg:/# cat /etc/config/luci config core 'main' option mediaurlbase '/luci-static/openwrt.org' option r
阅读全文
摘要:页面上配置的“保存&应用”功能的实现:最终调用到/etc/config/ucitrack的配置文件。 例如配置无线时,对应ucitrack配置文件中的config network option init network list affects dhcp list affects radvd con
阅读全文
摘要:time 和 date 两个函数在lua中实现所有的时钟查询功能。 函数time在没有参数时返回当前时钟的数值。(在许多操作系统中,该数值是距离某个特定时间的秒数)。 date是time的一种“反函数”,将数值转换为年月日时分秒 使用格式字符"*t",创建一个时间表。 temp = os.date(
阅读全文
摘要:read函数从当前输入文件读取串,由它的参数控制读取的内容: "*all” 读取整个文件 "*line" 读取下一行 "*number" 从串口中转换出一个数值 num 读取num个字符到串 io.read("*all")函数从当前位置读取整个输入文件,如果当前位置在文件末尾,或者文件为空,函数将返
阅读全文