随笔分类 - openwrt
摘要:BB版本的时候,在 feeds/luci/contrib/package/luci下的Makefile文件添加上需要编译的 luci-application即可。 在CC版里改为:Feeds/luci.index,或者复制到 package 下面然后再写个makefile 。 方法: 将 luci
阅读全文
摘要:因为怕mac地址冲突导致环路影响,所以修改了本地设备的mac地址。地址修改为 77:77:77:00:22:11, 结果导致 wlan0 下发不下来。 查看配置选项/etc/config/wireless 和 无线开关选项/etc/config/wonoff,配置如下: root@hbg:# cat
阅读全文
摘要:在脚本 reset2default中看到如下内容: #!/usr/bin/lua local hwm = require "hwm" hwm.myexec("jffs2reset -y")os.exit(0) 不知道 jffs2reset 的功能,百度一下,发现介绍的也很少,在此,自己研究一下。 首
阅读全文
摘要:文件位于 /etc/config/uhttpd。 root@hbg:/etc/config# cat uhttpd config uhttpd 'main' list listen_http '0.0.0.0:80' // 监听端口为80,协议为ipv4 list listen_http '[::]
阅读全文
摘要:root@hbg:/# iw phy phy0 infoWiphy phy0 max # scan SSIDs: 4 max scan IEs length: 2257 bytes Retry short limit: 7 Retry long limit: 4 Coverage class: 5
阅读全文
摘要:readlink,从字面意思就可以看出来,输出符号链接值或者权威文件名。 openwrt 下的readlink命令参数如下: root@hbg:/# readlink --helpBusyBox v1.22.1 (2016-05-16 12:27:19 CST) multi-call binary.
阅读全文
摘要:在openwrt文件 ar71xx.sh中 查询设备类型时,有这么一句, machine=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /machine/ {print $2}' /proc/cpuinfo)解决:1)查看cpuinforoot@hbg:/dev# cat /pro
阅读全文
摘要:root@OpenWrt:/# ifconfigbr-lan Link encap:Ethernet HWaddr 00:11:22:34:56:78 inet addr:192.168.2.125 Bcast:192.168.2.255 Mask:255.255.255.0 inet6 addr:
阅读全文
摘要:文件位于 /etc/inittab, 内容如下: root@hbg:/# cat /etc/inittab ::sysinit:/etc/init.d/rcS S boot::shutdown:/etc/init.d/rcS K shutdown::askconsole:/bin/login tty
阅读全文
摘要:SNMP使用的协议为UDP,默认端口为161和162. 使用iptables 命令如下: iptables -A INPUT -p udp -m udp --dport 161:162 -j DROP 使用mib browser采集设备上的节点,会超时(timeout) 在串口打开tcpdump打印
阅读全文
摘要:目前烧写完CC(chaos calmer 15.05)版本,查看其uboot变量如下: ath> printenvbootargs=console=ttyS0,115200 root=31:02 rootfstype=jffs2 init=/sbin/init mtdparts=ath-nor0:2
阅读全文
摘要:ebtables的参数中: -p:指明使用的协议类型,ipv4,arp等可选(使用时必选)详情见/etc/ethertypes --ip-proto:IP包的类型,1为ICMP包,6为TCP包,17为UDP包,在/etc/protocols下有详细说明 root@hbg:/etc# cat ethe
阅读全文
摘要:借鉴地址: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
阅读全文
摘要:https://wiki.openwrt.org/doc/devel/debugging 调试hostapd,其中hostapd的调试等级如下: # Levels (minimum value for logged events):# 0 = verbose debugging # 1 = debu
阅读全文

浙公网安备 33010602011771号