base-files: sysupgrade: add uci-defaults script disabling services #2
authorRafał Miłecki <rafal@milecki.pl>
Wed, 28 Feb 2024 10:51:02 +0000 (11:51 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Thu, 29 Feb 2024 15:12:06 +0000 (16:12 +0100)
commit0ad062a21ba3962a4532a9a209a16d0755688076
tree46cfaa53ca781ced19b8b440d9accde1f124dda9
parente36cc530927c4294c1510d7cdf89f0b9739e6cde
base-files: sysupgrade: add uci-defaults script disabling services #2

Disabled services should be kept disabled after sysupgrade. This can be
easily handled using a proper uci-defaults script.

Extend sysupgrade to check for disabled services, generate uci-defaults
script disabling them and include it in backup.

Cc: Christian Marangi <ansuelsmth@gmail.com>
Cc: Jo-Philipp Wich <jo@mein.io>
Cc: Jonas Gorski <jonas.gorski@gmail.com>
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: Jo-Philipp Wich <jo@mein.io>
package/base-files/files/sbin/sysupgrade