openwrt 为你的固件添加luci aria2设置页面

来源:互联网 发布:mac os x破解版下载 编辑:程序博客网 时间:2024/06/07 03:41

下面都是针对openwrt-dreambox源码修改

1.下载aria2.tar.gz解压,将aria2目录上传至openwrt-dreambox/feeds/dreambox_packages/替换原来的,这里我修改了aria2为1.15.2版本,所以还需要修改feeds目录下dreambox_packages.index索引文件中相应的值

  1. ruishen@RS-Dev:~/openwrt-dreambox$ nano feeds/dreambox_packages.index
  2. 找到aria2地方修改下面两个地方
  3. Version: 1.15.2
  4. Source: aria2-1.15.2.tar.bz2

2.下载luci-aria2.tar.gz解压,将luci-aria2目录上传至openwrt-dreambox/feeds/luci/luci/luci/applications/,同样还需要修改feeds目录下luci.index索引文件中相应的值,随便找个位置添加下面一段

  1. Package: luci-app-aria2
  2. Submenu: 3. Applications
  3. Version: trunk+svn-1
  4. Depends: +PACKAGE_luci-app-aria2:aria2
  5. Provides:
  6. Build-Depends: lua/host
  7. Section: luci
  8. Category: LuCI
  9. Title: aria2 configuration module
  10. Maintainer: LuCI Development Team <luci@lists.subsignal.org>
  11. Source:
  12. Type: ipkg
  13. Description: aria2 configuration module
  14. http://luci.subsignal.org/
  15. @@

还有openwrt-dreambox/feeds/luci/luci/Makefile文件中添加下面一段
  1. $(eval $(call application,aria2,aria2 configuration module,\
  2.         +PACKAGE_luci-app-aria2:aria2))

上面两段代码不知道添加什么位置的,其实挨着transmission添加就行,就是参照transmission做的

3.完成再./scripts/feeds install -a一下,应该就能在luci-Applications里找到luci-app-aria2了,选择他会自动选择Network-File Transfer中的aria2
下面就编译吧

1 0
原创粉丝点击