luci-app-qbittorrent: adapt to openwrt snapshot

Signed-off-by: sbwml <admin@cooluc.com>
This commit is contained in:
sbwml 2024-10-06 01:35:21 +08:00
parent 720b54e38c
commit 80dd45d424
2 changed files with 6 additions and 0 deletions

View File

@ -1,11 +1,13 @@
#!/bin/sh
[ -f "/etc/config/ucitrack" ] && {
uci -q batch <<-EOF >/dev/null
delete ucitrack.@qbittorrent[-1]
add ucitrack qbittorrent
set ucitrack.@qbittorrent[-1].init=qbittorrent
commit ucitrack
EOF
}
rm -f /tmp/luci-indexcache*
exit 0

View File

@ -0,0 +1,4 @@
{
"config": "qbittorrent",
"init": "qbittorrent"
}