base-files: sysupgrade: include uci-defaults script disabling services
authorRafał Miłecki <rafal@milecki.pl>
Wed, 14 Feb 2024 15:05:19 +0000 (16:05 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Mon, 19 Feb 2024 12:53:14 +0000 (13:53 +0100)
commitbf304d10e97c11de8c637fda02578cce79a3a0b4
tree50104e87a4779a0b7101d34f44284c5776b94e1a
parent4fa9aaf0bed984d200b3c48d1cc81fca7847c394
base-files: sysupgrade: include uci-defaults script disabling services

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