Browse Source

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 <fe@dev.tdt.de>
Florian Eckert 3 weeks ago
parent
commit
1d70d56ff8

+ 0 - 10
applications/luci-app-ahcp/root/etc/uci-defaults/40_luci-ahcp

@@ -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

+ 4 - 0
applications/luci-app-ahcp/root/usr/share/ucitrack/luci-app-ahcp.json

@@ -0,0 +1,4 @@
+{
+	"config": "ahcpd",
+	"init": "ahcpd"
+}