mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
22 lines
479 B
Bash
Executable File
22 lines
479 B
Bash
Executable File
#!/bin/sh
|
|
|
|
uci -q batch <<-EOF >/dev/null
|
|
delete ucitrack.@qbittorrent[-1]
|
|
add ucitrack qbittorrent
|
|
set ucitrack.@qbittorrent[-1].init=qbittorrent
|
|
commit ucitrack
|
|
EOF
|
|
|
|
if [ ."$(uci -q get qbittorrent.main)" != ."qbittorrent" ]; then
|
|
uci -q batch <<-EOF >/dev/null
|
|
add qbittorrent qbittorrent
|
|
rename qbittorrent.@qbittorrent[-1]="main"
|
|
set qbittorrent.main.enabled=0
|
|
set qbittorrent.main.profile="/tmp"
|
|
commit qbittorrent
|
|
EOF
|
|
fi
|
|
|
|
rm -f /tmp/luci-indexcache
|
|
exit 0
|