随笔分类 -  openwrt

摘要:https://wiki.openwrt.org/doc/techref/procd Procd:Openwrt的进程管理守护进程(process management daemon),它与初始化脚本(/etc/init.d/*)保持联系,当进程相关联的配置文件更改时,会触发procd去重启或启动脚 阅读全文
posted @ 2016-04-13 11:27 hbg-rohens 阅读(7116) 评论(0) 推荐(0)
摘要:https://wiki.openwrt.org/doc/howto/serial.console.password Openwrt 串口默认是没有密码的。Openwrt启动后,一个默认的密码将被启用去保护ssh登录和页面(http)登录,而串口登录密码却是空缺的。 将串口登录加入密码方法如下: 步 阅读全文
posted @ 2016-04-13 10:01 hbg-rohens 阅读(3561) 评论(0) 推荐(0)
摘要:设置语言的流程一、关联的配置文件/etc/config/luci查看配置文件内容如下:root@hbg:/# cat /etc/config/luci config core 'main' option mediaurlbase '/luci-static/openwrt.org' option r 阅读全文
posted @ 2016-04-07 14:14 hbg-rohens 阅读(2892) 评论(0) 推荐(0)
摘要:页面上配置的“保存&应用”功能的实现:最终调用到/etc/config/ucitrack的配置文件。 例如配置无线时,对应ucitrack配置文件中的config network option init network list affects dhcp list affects radvd con 阅读全文
posted @ 2016-04-06 10:52 hbg-rohens 阅读(8343) 评论(2) 推荐(1)
摘要:cd /tmp/ 上传: tftp -gr libnetsnmp_5.4.4-1_ar71xx.ipk 192.168.11.56 安装: opkg install libnetsnmp_5.4.4-1_ar71xx.ipk 启动调试模式: snmpd -f -Lo: 阅读全文
posted @ 2016-03-29 15:54 hbg-rohens 阅读(821) 评论(0) 推荐(0)
摘要:文件位于: ../feeds/luci/modules/admin-full/src/luci-bwc.c 功能: Very simple bandwidth collector cache for LuCI realtime graphs 主要用于绘画实时信息图使用,一个简单的流量收集缓存。 使用 阅读全文
posted @ 2016-03-01 16:59 hbg-rohens 阅读(1083) 评论(0) 推荐(0)
摘要:使用方法如下: root@openwrt:/# luci-bwcUsage: luci-bwc [-t timeout] -i ifname // ifname为接口名字 luci-bwc [-t timeout] -r radiodev luci-bwc [-t timeout] -c luci- 阅读全文
posted @ 2016-02-24 13:53 hbg-rohens 阅读(2726) 评论(0) 推荐(0)
摘要:root@hbg:/tmp# cat /proc/mtddev: size erasesize namemtd0: 00040000 00010000 "u-boot"mtd1: 00010000 00010000 "u-boot-env"mtd2: 00e30000 00010000 "rootf... 阅读全文
posted @ 2016-01-23 13:45 hbg-rohens 阅读(471) 评论(0) 推荐(0)
摘要:opkg是个安装器,小巧,功能全。 root@hbg:/# opkg files opkgPackage opkg (9c97d5ecd795709c8584e972bfdf3aee3a5b846d-7) is installed on root and has the following file 阅读全文
posted @ 2016-01-21 10:18 hbg-rohens 阅读(1874) 评论(0) 推荐(0)
摘要:生成备份文件时所使用的脚本中调用的命令为sysgrade local image_tmp = "/tmp/firmware.img"local backup_cmd = "sysupgrade --create-backup - 2>/dev/null"local fsysup = "openwrt... 阅读全文
posted @ 2016-01-20 18:06 hbg-rohens 阅读(3115) 评论(0) 推荐(0)
摘要:os.date() 返回 XX/XX/XX XX:XX:XX 月/日/年 时:分:秒os.time() 返回的是从1970年1月1日到现在的经过的秒数。例如:print(os.date())print(os.time())结果:01/19/16 09:09:461453165786 阅读全文
posted @ 2016-01-19 09:14 hbg-rohens 阅读(620) 评论(0) 推荐(0)
摘要:卸载了包 :opkg remove kmod-ath9k - 3.10.49+2014-05-22-1重新进行安装时出现如下错误:root@hbg:/tmp# opkg install /tmp/kmod-cfg80211_3.10.49+2014-05-22-1_ar71xx.ipk Instal... 阅读全文
posted @ 2016-01-11 11:37 hbg-rohens 阅读(12547) 评论(0) 推荐(0)
摘要:修改了snmp里面的包Makefile,出现了如下问题:Makefile:130: *** missing separator (did you mean TAB instead of 8 spaces?). Stop.源代码如下:tunnel \ucd-snmp/disk \ucd-snmp/dl... 阅读全文
posted @ 2016-01-08 14:39 hbg-rohens 阅读(1839) 评论(0) 推荐(0)
摘要:#!/bin/sh /etc/rc.common# Copyright (C) 2008-2012 OpenWrt.org#启动顺序START=90#创建PID文件SERVICE_USE_PID=1find_release_info(){ [ -s /etc/openwrt_release ] ... 阅读全文
posted @ 2015-12-19 14:51 hbg-rohens 阅读(2552) 评论(0) 推荐(0)
摘要:openwrt中启动脚本中经常出现如下一句:SERVICE_USE_PID=1例如lldp启动脚本 lldpd.init中如下:#!/bin/sh /etc/rc.common # Copyright (C) 2008-2012 OpenWrt.orgSTART=90SERVICE_USE_PID=... 阅读全文
posted @ 2015-12-19 14:28 hbg-rohens 阅读(801) 评论(0) 推荐(0)
摘要:打印这个消息后串口无法进行交互procd: - init complete -主要问题是 /etc下inittab脚本中::sysinit:/etc/init.d/rcS S boot::shutdown:/etc/init.d/rcS K shutdown#::askconsole:/bin/as... 阅读全文
posted @ 2015-12-17 10:15 hbg-rohens 阅读(909) 评论(0) 推荐(0)
摘要:来源: http://wiki.openwrt.org/doc/techref/preinit_mount#first.boot基本的openwrt启动顺序为: 1、boot loader loads kernel boot loader加载内核2、kernel loads whilst scan... 阅读全文
posted @ 2015-12-15 18:29 hbg-rohens 阅读(1914) 评论(0) 推荐(0)
摘要:make[3]: Entering directory '/home/hbg/test1214/package/feeds/luci/luci'*** Repository layout changed!*** Please change the LuCI url in feeds.conf to ... 阅读全文
posted @ 2015-12-14 14:11 hbg-rohens 阅读(866) 评论(0) 推荐(0)
摘要:make menuconfig添加luciLuCI--->Collections----- luci添加luci的中文语言包LuCI--->Translations---- luci-i18n-chinese这种方式只能翻译系统自带的一些功能。新增加的功能例如snmp、lldp等相关信息,需要修... 阅读全文
posted @ 2015-12-14 10:02 hbg-rohens 阅读(1903) 评论(0) 推荐(0)
摘要:解压完别人提供的openwrt代码,编译时,出现如下错误:# configuration written to .config#mips-openwrt-linux-uclibc-gcc: error while loading shared libraries: libstdc++.so.6: c... 阅读全文
posted @ 2015-12-14 09:46 hbg-rohens 阅读(2408) 评论(0) 推荐(0)