diff --git a/luci-app-qbittorrent/root/etc/uci-defaults/qbittorrent b/luci-app-qbittorrent/root/etc/uci-defaults/qbittorrent index 0cdbab3..c2df97c 100755 --- a/luci-app-qbittorrent/root/etc/uci-defaults/qbittorrent +++ b/luci-app-qbittorrent/root/etc/uci-defaults/qbittorrent @@ -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 diff --git a/luci-app-qbittorrent/root/usr/share/ucitrack/luci-app-qbittorrent.json b/luci-app-qbittorrent/root/usr/share/ucitrack/luci-app-qbittorrent.json new file mode 100644 index 0000000..817358f --- /dev/null +++ b/luci-app-qbittorrent/root/usr/share/ucitrack/luci-app-qbittorrent.json @@ -0,0 +1,4 @@ +{ + "config": "qbittorrent", + "init": "qbittorrent" +}