From 3409d71e032844d4f28df2097d7ef1baf26bdb1c Mon Sep 17 00:00:00 2001 From: sbwml Date: Sun, 6 Oct 2024 01:32:06 +0800 Subject: [PATCH] luci-app-mentohust: adapt to openwrt snapshot Signed-off-by: sbwml --- luci-app-mentohust/root/etc/uci-defaults/luci-mentohust | 2 ++ .../root/usr/share/ucitrack/luci-app-mentohust.json | 4 ++++ 2 files changed, 6 insertions(+) create mode 100644 luci-app-mentohust/root/usr/share/ucitrack/luci-app-mentohust.json diff --git a/luci-app-mentohust/root/etc/uci-defaults/luci-mentohust b/luci-app-mentohust/root/etc/uci-defaults/luci-mentohust index c85860c..44d6efa 100755 --- a/luci-app-mentohust/root/etc/uci-defaults/luci-mentohust +++ b/luci-app-mentohust/root/etc/uci-defaults/luci-mentohust @@ -1,11 +1,13 @@ #!/bin/sh +[ -f "/etc/config/ucitrack" ] && { uci -q batch <<-EOF >/dev/null delete ucitrack.@mentohust[-1] add ucitrack mentohust set ucitrack.@mentohust[-1].init=mentohust commit ucitrack EOF +} rm -rf /tmp/luci-indexcache* exit 0 diff --git a/luci-app-mentohust/root/usr/share/ucitrack/luci-app-mentohust.json b/luci-app-mentohust/root/usr/share/ucitrack/luci-app-mentohust.json new file mode 100644 index 0000000..4fbcfda --- /dev/null +++ b/luci-app-mentohust/root/usr/share/ucitrack/luci-app-mentohust.json @@ -0,0 +1,4 @@ +{ + "config": "mentohust", + "init": "mentohust" +}