luci-base: use json for ucitrack instead of uci
authorFlorian Eckert <fe@dev.tdt.de>
Wed, 10 Apr 2024 15:23:06 +0000 (17:23 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Thu, 11 Apr 2024 13:49:44 +0000 (15:49 +0200)
commita55b601f3747392947cdd9894c2e63f609d0bb4f
tree4148644753e08e7e45543ec129e4a551b2d8ab09
parent291dd24819eecf5c6b878d5b82d917cfea765505
luci-base: use json for ucitrack instead of uci

The 'ucitrack' configuration under '/etc/config' defines which service must
be restarted on a LuCI change. This uci file defines how all this works
together. Additionally there are 'uci-defaults' scripts in the various
applications that add additional configurations parameters to this ucitrack
file if a service must be reloaded/restarted on a LuCI change.

There are some problems with the current implementation:

* The uci should be used to configure the system and not for this kind of
  reload/restart dependency handling on LuCI changes.
* On a system update with configuration restore of the 'ucitrack' file
  the new behavior on LuCI reload/restart could not take into account
  because the new file is *not* used.

This commit converts the handling from uci to json.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
19 files changed:
modules/luci-base/Makefile
modules/luci-base/root/etc/config/ucitrack [deleted file]
modules/luci-base/root/etc/init.d/ucitrack
modules/luci-base/root/usr/share/ucitrack/dhcp.json [new file with mode: 0644]
modules/luci-base/root/usr/share/ucitrack/dropbear.json [new file with mode: 0644]
modules/luci-base/root/usr/share/ucitrack/firewall.json [new file with mode: 0644]
modules/luci-base/root/usr/share/ucitrack/fstab.json [new file with mode: 0644]
modules/luci-base/root/usr/share/ucitrack/httpd.json [new file with mode: 0644]
modules/luci-base/root/usr/share/ucitrack/luci_splash.json [new file with mode: 0644]
modules/luci-base/root/usr/share/ucitrack/network.json [new file with mode: 0644]
modules/luci-base/root/usr/share/ucitrack/ntpclient.json [new file with mode: 0644]
modules/luci-base/root/usr/share/ucitrack/odhcpd.json [new file with mode: 0644]
modules/luci-base/root/usr/share/ucitrack/olsr.json [new file with mode: 0644]
modules/luci-base/root/usr/share/ucitrack/qos.json [new file with mode: 0644]
modules/luci-base/root/usr/share/ucitrack/samba.json [new file with mode: 0644]
modules/luci-base/root/usr/share/ucitrack/system.json [new file with mode: 0644]
modules/luci-base/root/usr/share/ucitrack/tinyproxy.json [new file with mode: 0644]
modules/luci-base/root/usr/share/ucitrack/upnpd.json [new file with mode: 0644]
modules/luci-base/root/usr/share/ucitrack/wireless.json [new file with mode: 0644]