添加 Patch: fix_aria2_autocreate_path.patch

This commit is contained in:
Hyy2001X 2022-01-14 20:43:20 +08:00
parent d188d8c1cf
commit 8a870f644f
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,24 @@
--- a/feeds/packages/net/aria2/Makefile
+++ b/feeds/packages/net/aria2/Makefile
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=aria2
PKG_VERSION:=1.36.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://github.com/aria2/aria2/releases/download/release-$(PKG_VERSION)/
--- a/feeds/packages/net/aria2/files/aria2.init
+++ b/feeds/packages/net/aria2/files/aria2.init
@@ -162,7 +162,8 @@ aria2_start() {
[ "$enabled" = "1" ] || { _info "Instance \"$section\" disabled."; return 1; }
[ -n "$dir" ] || { _err "Please set download dir."; return 1; }
- [ -d "$dir" ] || { _err "Please create download dir first."; return 1; }
+ mkdir -p "$dir"
+ [ ! -d "$dir" ] && { _err "Failed to create download dir."; return 1; }
config_file="$config_dir/$NAME.conf.$section"
config_file_tmp="$config_dir/$NAME.conf.tmp"

View File

@ -56,6 +56,7 @@ Firmware_Diy() {
# AddPackage svn other ddnsto linkease/nas-packages/trunk/network/services
patch < ${CustomFiles}/Patches/revert_remove-alterId-config.patch -p1 -d ${Home}
patch < ${CustomFiles}/Patches/fix_ntfs3_antfs_conflict.patch -p1 -d ${Home}
patch < ${CustomFiles}/Patches/fix_aria2_autocreate_path.patch -p1 -d ${Home}
case "${TARGET_PROFILE}" in
d-team_newifi-d2)