Browse Source

aria2: Add missing 'or' in section validate function

Signed-off-by: Hsing-Wang Liao <kuoruan@gmail.com>
lilik-openwrt-22.03
Hsing-Wang Liao 7 years ago
committed by Yousong Zhou
parent
commit
df615166ba
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      net/aria2/Makefile
  2. +2
    -2
      net/aria2/files/aria2.init

+ 1
- 1
net/aria2/Makefile View File

@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=aria2
PKG_VERSION:=1.32.0
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://github.com/aria2/aria2/releases/download/release-$(PKG_VERSION)/


+ 2
- 2
net/aria2/files/aria2.init View File

@ -112,8 +112,8 @@ aria2_validate() {
'disk_cache:string' \
'enable_dht:or("true","false"):true' \
'enable_dht6:or("true","false")' \
'enable_peer_exchange:("true","false")' \
'event_poll:("epoll","kqueue","port","poll","select")' \
'enable_peer_exchange:or("true","false")' \
'event_poll:or("epoll","kqueue","port","poll","select")' \
'file_allocation:or("none","prealloc","trunc","falloc")' \
'follow_torrent:or("true","false","mem")' \
'force_save:or("true","false")' \


Loading…
Cancel
Save