随笔分类 - openwrt
摘要: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
阅读全文
摘要: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:
阅读全文
摘要:文件位于: ../feeds/luci/modules/admin-full/src/luci-bwc.c 功能: Very simple bandwidth collector cache for LuCI realtime graphs 主要用于绘画实时信息图使用,一个简单的流量收集缓存。 使用
阅读全文
摘要:使用方法如下: root@openwrt:/# luci-bwcUsage: luci-bwc [-t timeout] -i ifname // ifname为接口名字 luci-bwc [-t timeout] -r radiodev luci-bwc [-t timeout] -c luci-
阅读全文
摘要:root@hbg:/tmp# cat /proc/mtddev: size erasesize namemtd0: 00040000 00010000 "u-boot"mtd1: 00010000 00010000 "u-boot-env"mtd2: 00e30000 00010000 "rootf...
阅读全文
摘要:opkg是个安装器,小巧,功能全。 root@hbg:/# opkg files opkgPackage opkg (9c97d5ecd795709c8584e972bfdf3aee3a5b846d-7) is installed on root and has the following file
阅读全文
摘要:生成备份文件时所使用的脚本中调用的命令为sysgrade local image_tmp = "/tmp/firmware.img"local backup_cmd = "sysupgrade --create-backup - 2>/dev/null"local fsysup = "openwrt...
阅读全文
摘要: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
阅读全文
摘要:卸载了包 :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...
阅读全文
摘要:修改了snmp里面的包Makefile,出现了如下问题:Makefile:130: *** missing separator (did you mean TAB instead of 8 spaces?). Stop.源代码如下:tunnel \ucd-snmp/disk \ucd-snmp/dl...
阅读全文
摘要:#!/bin/sh /etc/rc.common# Copyright (C) 2008-2012 OpenWrt.org#启动顺序START=90#创建PID文件SERVICE_USE_PID=1find_release_info(){ [ -s /etc/openwrt_release ] ...
阅读全文
摘要:openwrt中启动脚本中经常出现如下一句:SERVICE_USE_PID=1例如lldp启动脚本 lldpd.init中如下:#!/bin/sh /etc/rc.common # Copyright (C) 2008-2012 OpenWrt.orgSTART=90SERVICE_USE_PID=...
阅读全文
摘要:打印这个消息后串口无法进行交互procd: - init complete -主要问题是 /etc下inittab脚本中::sysinit:/etc/init.d/rcS S boot::shutdown:/etc/init.d/rcS K shutdown#::askconsole:/bin/as...
阅读全文
摘要:来源: http://wiki.openwrt.org/doc/techref/preinit_mount#first.boot基本的openwrt启动顺序为: 1、boot loader loads kernel boot loader加载内核2、kernel loads whilst scan...
阅读全文
摘要:make[3]: Entering directory '/home/hbg/test1214/package/feeds/luci/luci'*** Repository layout changed!*** Please change the LuCI url in feeds.conf to ...
阅读全文
摘要:make menuconfig添加luciLuCI--->Collections----- luci添加luci的中文语言包LuCI--->Translations---- luci-i18n-chinese这种方式只能翻译系统自带的一些功能。新增加的功能例如snmp、lldp等相关信息,需要修...
阅读全文
摘要:解压完别人提供的openwrt代码,编译时,出现如下错误:# configuration written to .config#mips-openwrt-linux-uclibc-gcc: error while loading shared libraries: libstdc++.so.6: c...
阅读全文

浙公网安备 33010602011771号