From: Florian Eckert Date: Thu, 11 Apr 2024 09:48:49 +0000 (+0200) Subject: luci-app-ahcp: upgrade uci-defaults for ucitrack handling to use json X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=1d70d56ff84eebad4010ffc9ccaae1d1bc6143ba;p=openwrt-luci.git luci-app-ahcp: 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-ahcp/root/etc/uci-defaults/40_luci-ahcp b/applications/luci-app-ahcp/root/etc/uci-defaults/40_luci-ahcp deleted file mode 100755 index c0270a33c6..0000000000 --- a/applications/luci-app-ahcp/root/etc/uci-defaults/40_luci-ahcp +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -uci -q batch <<-EOF >/dev/null - delete ucitrack.@ahcpd[-1] - add ucitrack ahcpd - set ucitrack.@ahcpd[-1].init=ahcpd - commit ucitrack -EOF - -exit 0 diff --git a/applications/luci-app-ahcp/root/usr/share/ucitrack/luci-app-ahcp.json b/applications/luci-app-ahcp/root/usr/share/ucitrack/luci-app-ahcp.json new file mode 100644 index 0000000000..38a99c5f4b --- /dev/null +++ b/applications/luci-app-ahcp/root/usr/share/ucitrack/luci-app-ahcp.json @@ -0,0 +1,4 @@ +{ + "config": "ahcpd", + "init": "ahcpd" +}