From: Florian Eckert Date: Thu, 11 Apr 2024 09:41:49 +0000 (+0200) Subject: luci-app-watchcat: upgrade uci-defaults for ucitrack handling to use json X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=0be7f9deb7da12a88140785bdeafae5ea9ac2398;p=project%2Fluci.git luci-app-watchcat: upgrade uci-defaults for ucitrack handling to use json Conversion of the 'uci-defaults' script for ucitrack handling to the new json processing. Signed-off-by: Florian Eckert --- diff --git a/applications/luci-app-watchcat/root/etc/uci-defaults/40_luci-watchcat b/applications/luci-app-watchcat/root/etc/uci-defaults/40_luci-watchcat deleted file mode 100644 index 02a7f09783..0000000000 --- a/applications/luci-app-watchcat/root/etc/uci-defaults/40_luci-watchcat +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -uci -q batch <<-EOF >/dev/null - delete ucitrack.@watchcat[-1] - add ucitrack watchcat - set ucitrack.@watchcat[-1].init=watchcat - commit ucitrack -EOF - -exit 0 diff --git a/applications/luci-app-watchcat/root/usr/share/ucitrack/luci-app-watchcat.json b/applications/luci-app-watchcat/root/usr/share/ucitrack/luci-app-watchcat.json new file mode 100644 index 0000000000..616dd1fb79 --- /dev/null +++ b/applications/luci-app-watchcat/root/usr/share/ucitrack/luci-app-watchcat.json @@ -0,0 +1,4 @@ +{ + "config": "watchcat", + "init": "watchcat" +}