blob: becc1c699588aaef5146d4566870cb03ebdeed3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/sh
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_settings=""
commit aria2
EOF
fi
exit 0
|