--- 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"