summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-aria2/root/etc/uci-defaults
diff options
context:
space:
mode:
authorXingwang Liao <kuoruan@gmail.com>2019-03-29 17:09:37 +0800
committerXingwang Liao <kuoruan@gmail.com>2019-07-01 14:28:54 +0800
commitf90de782a758ad1c702e2ae9403e415d8592eac5 (patch)
tree0412c837b306840342f9aff8f85b3c33c2c9cb14 /applications/luci-app-aria2/root/etc/uci-defaults
parent9a979e6db5de1c268dfd35099e58187439919df9 (diff)
luci-app-aria2: Refactor, new views and more options
This commit contains: * Refactor package code. * Add options for RPC, HTTP/HTTPS and BT. * Improve descriptions for some options. * New views for config files and log files. * Also updated translation for simplified Chinese. Signed-off-by: Xingwang Liao <kuoruan@gmail.com>
Diffstat (limited to 'applications/luci-app-aria2/root/etc/uci-defaults')
-rwxr-xr-xapplications/luci-app-aria2/root/etc/uci-defaults/40_luci-aria214
1 files changed, 14 insertions, 0 deletions
diff --git a/applications/luci-app-aria2/root/etc/uci-defaults/40_luci-aria2 b/applications/luci-app-aria2/root/etc/uci-defaults/40_luci-aria2
index 3a9ba5b29a..fc6190d5ac 100755
--- a/applications/luci-app-aria2/root/etc/uci-defaults/40_luci-aria2
+++ b/applications/luci-app-aria2/root/etc/uci-defaults/40_luci-aria2
@@ -7,5 +7,19 @@ uci -q batch <<-EOF >/dev/null
commit ucitrack
EOF
+if [ ."$(uci -q get aria2.main)" != ."aria2" ]; then
+ uci -q batch <<-EOF >/dev/null
+ add aria2 aria2
+ rename aria2.@aria2[-1]="main"
+ set aria2.main.enabled=0
+ set aria2.main.dir="/var/run/aria2"
+ set aria2.main.config_dir="/var/etc/aria2"
+ add_list aria2.main.header=""
+ add_list aria2.main.bt_tracker=""
+ add_list aria2.main.extra_setting=""
+ commit aria2
+ EOF
+fi
+
rm -f /tmp/luci-indexcache
exit 0