Openwrt /lib/functions/procd.sh脚本是在/sbin/procd进程启动后,将会对hotplug实现进行监听,当有hotplug的event时,将会使用hotplug.json,执行/etc/hotplug.d/下与event对应的脚本文件[root@PandoraBox:/lib/functions]#cat /lib/functions/procd.sh
# pro...
分类:
其他好文 时间:
2015-05-25 18:41:28
阅读次数:
2238
http://blog.163.com/l1_jun/blog/static/14386388201441344612/http://blog.chinaunix.net/uid-25073805-id-2984335.htmlhttp://jingyan.baidu.com/article/948...
分类:
其他好文 时间:
2015-05-24 17:03:12
阅读次数:
152
$Id$23OpenWRT specific README4=======================56So, you want to run wifidog on one of linksys's WRT wireless routers!78OpenWRT is the embedded ...
分类:
其他好文 时间:
2015-05-24 12:46:54
阅读次数:
203
nodogsplash是附加于openwrt的WIFI热点认证程序,工作在路由器下的局域网内,接管路由器上多个热点的认证服务。nodogsplash是修改的wifidog,不需要服务器,配置简单,轻巧方便。openwrt的路由器只有一个,测试中打开nodogsplash会耽误其他人上网。所以单独开启...
分类:
其他好文 时间:
2015-05-22 23:56:52
阅读次数:
194
Openwrt中的sysupgrade脚本提供了固件升级的快捷方式,该脚本位于: /sbin/sysupgrade
脚本内容: #!/bin/sh
. /lib/functions.sh
. /lib/functions/system.sh# initialize defaults
RAMFS_COPY_BIN="" # extra programs for temporary ra...
分类:
其他好文 时间:
2015-05-22 13:36:34
阅读次数:
584
Openwrt启动脚本的运行分为两个阶段,
preinit完成系统的初始化,
rcS依次启动了各个应用程序模块。执行/etc/preinit脚本之后boot_hook_init preinit_essential
boot_hook_init preinit_main
boot_hook_init failsafe
boot_hook_init initramfs
boot_hook_init...
分类:
其他好文 时间:
2015-05-22 11:33:21
阅读次数:
777
opkg updateopkg install ddns-scripts luci-app-ddns用上面的命令下载ddns脚本,编辑配置文件vi /etc/config/ddns配置如下config service "myddns" ...
分类:
系统相关 时间:
2015-05-22 07:07:24
阅读次数:
498
Openwrt系统启动后,首先运行/etc/preinit脚本
以newifi y1s为例,刷入Pandorabox固件#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
# Copyright (C) 2010 Vertical Communications[ -z "$PREINIT" ] && exec /sbin/initexport PATH=/bin:...
分类:
其他好文 时间:
2015-05-21 22:35:20
阅读次数:
1459
output_gstreamer.o: In function `my_bus_callback': output_gstreamer.c:(.text+0xf68): undefined reference to `gst_pad_get_negotiated_caps' collect2: er...
分类:
其他好文 时间:
2015-05-21 12:26:17
阅读次数:
540
写一个/etc/rc.button/reset脚本来对安全,状态还有配置改变的反馈做相应的处理远程操作按下reset按键,并存储配置,脚本文件:#!/bin/shPATH="$PATH:/usr/local/sbin/:/usr/local/bin/"# Only run on button release.
[[ "${ACTION}" = "released" ]] || exit 0# log...
分类:
其他好文 时间:
2015-05-21 10:50:03
阅读次数:
168