|
本帖最后由 shenrui01 于 2012-11-4 15:29 编辑
为你的固件添加luci aria2设置页面
下面都是针对openwrt-dreambox源码修改
aria2配置页面代码来源于穿越蓝天http://hi.baidu.com/animefans_xj/item/0611fc4e2f0db8a961d7b9bd
YAAW控制前段来源于http://blog.binux.me/yaaw
本人进行了汉化
没有废话开工:
1.下载aria2.tar.gz解压,将aria2目录上传至openwrt-dreambox/feeds/dreambox_packages/替换原来的,这里我修改了aria2为1.15.2版本,所以还需要修改feeds目录下dreambox_packages.index索引文件中相应的值
- ruishen@RS-Dev:~/openwrt-dreambox$ nano feeds/dreambox_packages.index
- 找到aria2地方修改下面两个地方
- Version: 1.15.2
- Source: aria2-1.15.2.tar.bz2
复制代码
2.下载luci-aria2.tar.gz解压,将luci-aria2目录上传至openwrt-dreambox/feeds/luci/luci/luci/applications/,同样还需要修改feeds目录下luci.index索引文件中相应的值,随便找个位置添加下面一段
- Package: luci-app-aria2
- Submenu: 3. Applications
- Version: trunk+svn-1
- Depends: +PACKAGE_luci-app-aria2:aria2
- Provides:
- Build-Depends: lua/host
- Section: luci
- Category: LuCI
- Title: aria2 configuration module
- Maintainer: LuCI Development Team <luci@lists.subsignal.org>
- Source:
- Type: ipkg
- Description: aria2 configuration module
- http://luci.subsignal.org/
- @@
复制代码
还有openwrt-dreambox/feeds/luci/luci/Makefile文件中添加下面一段
- $(eval $(call application,aria2,aria2 configuration module,\
- +PACKAGE_luci-app-aria2:aria2))
复制代码
上面两段代码不知道添加什么位置的,其实挨着transmission添加就行,就是参照transmission做的
3.完成再./scripts/feeds install -a一下,应该就能在luci-Applications里找到luci-app-aria2了,选择他会自动选择Network-File Transfer中的aria2
下面就编译吧
截图见这个帖子https://www.right.com.cn/forum/thread-107437-1-1.html |
评分
-
查看全部评分
|