From 80dd45d42426cf2ee411543a48acfdb155ad6227 Mon Sep 17 00:00:00 2001 From: sbwml Date: Sun, 6 Oct 2024 01:35:21 +0800 Subject: [PATCH] luci-app-qbittorrent: adapt to openwrt snapshot Signed-off-by: sbwml --- luci-app-qbittorrent/root/etc/uci-defaults/qbittorrent | 2 ++ .../root/usr/share/ucitrack/luci-app-qbittorrent.json | 4 ++++ 2 files changed, 6 insertions(+) create mode 100644 luci-app-qbittorrent/root/usr/share/ucitrack/luci-app-qbittorrent.json 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" +}