summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-aria2/root/etc/uci-defaults
diff options
context:
space:
mode:
authorHsing-Wang Liao <kuoruan@gmail.com>2016-05-30 14:30:47 +0800
committerHsing-Wang Liao <kuoruan@gmail.com>2016-05-30 21:27:22 +0800
commitc88aea6277ce7242217eda6115a44f6fedb49e56 (patch)
tree1a26880f21f79573ed9f96f44e00b69ad9adc6b4 /applications/luci-app-aria2/root/etc/uci-defaults
parentc46963613f7f1312dac62e507346777ba6f8d8a6 (diff)
luci-app-aria2: Add package
LuCI Support for Aria2 Signed-off-by: Hsing-Wang 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-aria211
1 files changed, 11 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
new file mode 100755
index 0000000000..3a9ba5b29a
--- /dev/null
+++ b/applications/luci-app-aria2/root/etc/uci-defaults/40_luci-aria2
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@aria2[-1]
+ add ucitrack aria2
+ set ucitrack.@aria2[-1].init=aria2
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0