From 0be7f9deb7da12a88140785bdeafae5ea9ac2398 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Thu, 11 Apr 2024 11:41:49 +0200 Subject: [PATCH] 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 --- .../root/etc/uci-defaults/40_luci-watchcat | 10 ---------- .../root/usr/share/ucitrack/luci-app-watchcat.json | 4 ++++ 2 files changed, 4 insertions(+), 10 deletions(-) delete mode 100644 applications/luci-app-watchcat/root/etc/uci-defaults/40_luci-watchcat create mode 100644 applications/luci-app-watchcat/root/usr/share/ucitrack/luci-app-watchcat.json 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" +} -- 2.30.2